From: "André Almeida" <andrealmeid@igalia.com>
To: Magnus Lindholm <linmag7@gmail.com>, Arnd Bergmanon <arnd@arndb.de>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Christian Brauner <brauner@kernel.org>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
kernel-dev@igalia.com,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
linux-alpha@vger.kernel.org, linux-s390@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, soc@lists.linux.dev,
linux-mips@vger.kernel.org, sparclinux@vger.kernel.org
Subject: Re: [PATCH v9 11/15] alpha: Remove alpha_ prefix from custom syscall entries
Date: Thu, 12 Nov 2026 12:13:01 -0300 [thread overview]
Message-ID: <f0399f4d-ce4d-4b52-a280-affaf2ea8bd8@igalia.com> (raw)
In-Reply-To: <CA+=Fv5Tm4-DV9KEKxO11ta84EvqigB-KDemhOML1hx9zoxx0cA@mail.gmail.com>
Em 11/11/2026 04:43, Magnus Lindholm escreveu:
> Hi André
>
> On Thu, Nov 5, 2026 at 9:26 PM André Almeida <andrealmeid@igalia.com> wrote:
>>
>> Some architectures need special entry points for some syscalls (like
>> clone3). The current approach is, instead of having a special name like
>> arch_syscall, to name if as __syscall. This is enough to different the
>> common entry point to the architecture specific entry point.
>>
>> Change alpha special syscall entries to do the same. This makes easier to
>> join the syscall tables. Leave alpha_syscall_zero because this syscall only
>> exists in alpha anyway.
>>
>> Signed-off-by: André Almeida <andrealmeid@igalia.com>
>> ---
>> Changes from v7:
>> - Fix __clone3 entry
>> ---
>> arch/alpha/kernel/entry.S | 8 ++++----
>> arch/alpha/kernel/syscalls/syscall.tbl | 8 ++++----
>> 2 files changed, 8 insertions(+), 8 deletions(-)
>>
>> diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S
>> index 790389a15c3c..25d05f45512d 100644
>> --- a/arch/alpha/kernel/entry.S
>> +++ b/arch/alpha/kernel/entry.S
>> @@ -729,9 +729,9 @@ ret_from_kernel_thread:
>>
>> .macro fork_like name
>> .align 4
>> - .globl alpha_\name
>> - .ent alpha_\name
>> -alpha_\name:
>> + .globl __sys_\name
>> + .ent __sys_\name
>> +__sys_\name:
>> .prologue 0
>> bsr $1, do_switch_stack
>> // NB: if anyone adds preemption, this block will need to be protected
>> @@ -746,7 +746,7 @@ alpha_\name:
>> ldq $26, 56($sp)
>> lda $sp, SWITCH_STACK_SIZE($sp)
>> ret
>> -.end alpha_\name
>> +.end __sys_\name
>> .endm
>>
>> fork_like fork
>> diff --git a/arch/alpha/kernel/syscalls/syscall.tbl b/arch/alpha/kernel/syscalls/syscall.tbl
>> index 8fc4701a6328..59eb066a40bf 100644
>> --- a/arch/alpha/kernel/syscalls/syscall.tbl
>> +++ b/arch/alpha/kernel/syscalls/syscall.tbl
>> @@ -9,7 +9,7 @@
>> #
>> 0 common osf_syscall alpha_syscall_zero
>> 1 common exit sys_exit
>> -2 common fork alpha_fork
>> +2 common fork __sys_fork
>> 3 common read sys_read
>> 4 common write sys_write
>> 5 common osf_old_open sys_ni_syscall
>> @@ -72,7 +72,7 @@
>> 63 common getpgrp sys_getpgrp
>> 64 common getpagesize sys_getpagesize
>> 65 common osf_mremap sys_ni_syscall
>> -66 common vfork alpha_vfork
>> +66 common vfork __sys_vfork
>> 67 common stat sys_newstat
>> 68 common lstat sys_newlstat
>> 69 common osf_sbrk sys_ni_syscall
>> @@ -242,7 +242,7 @@
>> 309 common get_kernel_syms sys_ni_syscall
>> 310 common syslog sys_syslog
>> 311 common reboot sys_reboot
>> -312 common clone alpha_clone
>> +312 common clone __sys_clone
>> 313 common uselib sys_uselib
>> 314 common mlock sys_mlock
>> 315 common munlock sys_munlock
>> @@ -474,7 +474,7 @@
>> 542 common fsmount sys_fsmount
>> 543 common fspick sys_fspick
>> 544 common pidfd_open sys_pidfd_open
>> -545 common clone3 alpha_clone3
>> +545 common clone3 __sys__clone3
>> 546 common close_range sys_close_range
>> 547 common openat2 sys_openat2
>> 548 common pidfd_getfd sys_pidfd_getfd
>>
>> --
>> 2.56.0
>>
>>
>
> This conflicts with my Alpha for-next:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/lindholm/alpha.git
> branch: for-next
>
> Commit d38895ba9330 ("alpha: dispatch system calls from C") removes
> the fork_like assembly wrappers and changes the table entries to
> sys_fork, sys_vfork, sys_clone and sys_clone3.
>
Thanks for the review and testing! I will make my work depend on this
commit then, I believe is the easiest way forward here.
> Consequently, this rename is no longer needed when integrating your
> series on top of that branch. I skipped this patch for my integration
> test and retained those existing entries.
>
> My for-next is registered with linux-next, so this is an interaction
> we should account for when the trees are combined.
>
> Thanks,
> Magnus
next prev parent reply other threads:[~2026-11-12 15:13 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 20:05 [PATCH v9 00/15] syscalls: Add a shared table for all archs André Almeida
2026-11-05 20:05 ` [PATCH v9 01/15] syscalls: Make --abis parsing more robust André Almeida
2026-11-12 14:05 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 02/15] syscalls: Create unified partial table for all archs André Almeida
2026-11-12 14:05 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 03/15] scripts/syscall.tbl: Use the common table André Almeida
2026-11-05 20:05 ` [PATCH v9 04/15] s390: Use the common syscall table André Almeida
2026-11-12 14:16 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 05/15] sparc: " André Almeida
2026-11-12 14:17 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 06/15] mips: Remove duplicated syscallnr.sh André Almeida
2026-11-12 14:29 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 07/15] mips: Get rid of custom mips ABIs for syscall tables André Almeida
2026-11-05 20:05 ` [PATCH v9 08/15] mips: Use the common syscall table André Almeida
2026-11-12 14:19 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 09/15] syscalls: Add an option for offsetting the common table André Almeida
2026-11-12 14:07 ` Arnd Bergmann
2026-11-12 14:37 ` André Almeida
2026-11-12 15:08 ` Arnd Bergmann
2026-11-12 15:10 ` André Almeida
2026-11-12 15:13 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 10/15] alpha: Define entry point for set_mempolicy_home_node syscall André Almeida
2026-11-11 7:40 ` Magnus Lindholm
2026-11-12 14:15 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 11/15] alpha: Remove alpha_ prefix from custom syscall entries André Almeida
2026-11-11 7:43 ` Magnus Lindholm
2026-11-12 15:13 ` André Almeida [this message]
2026-11-05 20:05 ` [PATCH v9 12/15] alpha: Use the common syscall table André Almeida
2026-11-11 7:51 ` Magnus Lindholm
2026-11-05 20:05 ` [PATCH v9 13/15] syscalls: Avoid matching substrings in the ABI parsing André Almeida
2026-11-12 14:04 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 14/15] arm: Reorganize syscall table and separated the ABIs André Almeida
2026-11-12 14:15 ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 15/15] arm: Use common syscall table André Almeida
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=f0399f4d-ce4d-4b52-a280-affaf2ea8bd8@igalia.com \
--to=andrealmeid@igalia.com \
--cc=arnd@arndb.de \
--cc=brauner@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=linmag7@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=soc@lists.linux.dev \
--cc=sparclinux@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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
all inboxes | Powered by JetHome®