Re: [PATCH RFC v3 2/8] syscalls: Create unified partial table for all archs

"Arnd Bergmann" <[email protected]>
Newsgroups gmane.linux.kbuild.devel,gmane.linux.kernel
Message-ID <[email protected]>
On Mon, Aug 10, 2026, at 15:19, André Almeida wrote:
> Em 07/08/2026 17:40, Arnd Bergmann escreveu:
>> 
>> I don't see the purpose of this and would prefer to not add that
>> extra option if the scripts works fine without it.
>> 
>
> Some archs don't define __SYSCALL_WITH_COMPAT() (see x86_64 for 
> instance), so that's why I have added this option. But I can define 
> __SYSCALL_WITH_COMPAT() as SYSCALL(nr, native) for those archs.

Yes, I think that is the best solution here, yes. We certainly need
to use the compat version for .tbl files that only have one entry
but do use the compat ones (mips n32, arm64 aarch32), and using it
everywhere helps remove another special case here.

Side note: in the long run, I would hope we can remove those
intermediate macros entirely and just output a readable version
of the switch/case style top-level function that x86 generates
from the table.

      Arnd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.