From: Nirbhay Sharma <nirbhay.lkd@gmail.com>
To: o-takashi@sakamocchi.jp
Cc: linux1394-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, david.hunter.linux@gmail.com,
linux-kernel-mentees@lists.linuxfoundation.org,
skhan@linuxfoundation.org
Subject: Re: [PATCH] firewire: Replace ENOSYS with appropriate error codes
Date: Wed, 19 Nov 2025 10:21:01 +0530 [thread overview]
Message-ID: <ef7e9698-db22-40a9-afb7-7a5204c579ac@gmail.com> (raw)
In-Reply-To: <20251117113107.GA663208@workstation.local>
On 11/17/25 5:01 PM, Takashi Sakamoto wrote:
> Hi,
>
> Yes. The newly-written code should not use ENOSYS for cadual use, indeed.
>
>
> There is a rest to discuss when changing existing code in respect to
> this topic, since it brings loss of backward-compatibility to userspace
> software. In this reason, I've left them as is.
>
> If there are any strong and specific reasons to correct them, let us
> change them. Do you have such reasons? For example, Linux kernel
> developer have shared the consensus and decision to ostracize such codes?
>
>
> Thanks
>
> Takashi Sakamoto
Hi Takashi,
Thank you for your detailed review and explanation.
You are absolutely right about the backward compatibility concern. I
realize now that changing error codes in existing code paths could break
userspace applications that might be checking for specific error values.
My patch was motivated by the checkpatch.pl warning and the general
kernel policy that ENOSYS should only mean "invalid syscall number."
BUt, I didn't fully consider the userspace ABI implications of changing
error codes in code that's already been released.
I do not have a strong technical reason beyond code correctness to
justify breaking backward compatibility in this case. Since these
interfaces are already in use and userspace software may depend on the
current behavior, the risk of breaking existing applications outweighs
the benefit of this cleanup.
I withdraw this patch. Thank you for taking the time to explain this,
its an important lesson about the difference between fixing issues in
new code versus maintaining stability in existing interfaces.
Thanks,
Nirbhay
prev parent reply other threads:[~2025-11-19 4:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 11:09 [PATCH] firewire: Replace ENOSYS with appropriate error codes Nirbhay Sharma
2025-11-17 11:31 ` Takashi Sakamoto
2025-11-19 4:51 ` Nirbhay Sharma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ef7e9698-db22-40a9-afb7-7a5204c579ac@gmail.com \
--to=nirbhay.lkd@gmail.com \
--cc=david.hunter.linux@gmail.com \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=o-takashi@sakamocchi.jp \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox