All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "André Almeida" <andrealmeid@igalia.com>,
	"Masami Hiramatsu" <mhiramat@kernel.org>,
	"Arnd Bergmanon" <arnd@arndb.de>
Cc: "Christian Brauner" <brauner@kernel.org>,
	linux-kbuild@vger.kernel.org, kernel-dev@igalia.com,
	"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
	linux-s390@vger.kernel.org, sparclinux@vger.kernel.org,
	nathan@kernel.org, nsc@kernel.org,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v9 11/15] alpha: Remove alpha_ prefix from custom syscall entries
Date: Fri, 06 Nov 2026 20:33:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-202224@kernel.org> (raw)
In-Reply-To: <20261105-tonyk-syscall_table-v9-11-8d1275885d9c@igalia.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] alpha: typo __sys__clone3 in syscall.tbl causes undefined symbol
  link failure
--

commit fa967afa6e0adcd94fdda9ada7c1dc69e95fd2a8
Author: André Almeida <andrealmeid@igalia.com>

alpha: Remove alpha_ prefix from custom syscall entries

This commit renames the custom fork, vfork, clone, and clone3 syscall
entry points on Alpha from an alpha_ prefix to a __sys_ prefix in order
to prepare for sharing the common syscall table.

> diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S
> index 790389a15c3ce..25d05f45512d2 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 8fc4701a63282..59eb066a40bfc 100644
> --- a/arch/alpha/kernel/syscalls/syscall.tbl
> +++ b/arch/alpha/kernel/syscalls/syscall.tbl

[ ... ]

> @@ -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

[Severity: Low]
As reported by Magnus Lindholm on v7 [1], should this entry in
arch/alpha/kernel/syscalls/syscall.tbl be __sys_clone3 with a single
underscore instead of __sys__clone3?

In arch/alpha/kernel/entry.S, the fork_like macro defines global symbols
with a single underscore after __sys:

    fork_like clone3

which expands to __sys_clone3.

When building an Alpha kernel at this commit, scripts/syscalltbl.sh emits
__SYSCALL(545, __sys__clone3) into asm/syscall_table.h, which
arch/alpha/kernel/systbls.S expands into sys_call_table:

    #define __SYSCALL(nr, entry) .quad entry
            .data
            .align 3
            .globl sys_call_table
    sys_call_table:
    #include <asm/syscall_table.h>

Because __sys__clone3 is not defined anywhere, linking fails with an
undefined reference error. Although the subsequent commit a88b82345eb1
("alpha: Use the common syscall table") replaces this part of
arch/alpha/kernel/syscalls/syscall.tbl with scripts/syscall_common.tbl
and resolves the build error, does this typo break bisectability at this
commit?

[1] https://lore.kernel.org/r/CA+=Fv5Q+sOLmT0Wf3OGdKw=mBt_EoS8ZQDF3wwGrm2-2vnOYgg@mail.gmail.com

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105-tonyk-syscall_table-v9-0-8d1275885d9c@igalia.com?part=11

  reply	other threads:[~2026-11-06 20:33 UTC|newest]

Thread overview: 49+ 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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 04/15] s390: Use the common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot
2026-11-12 14:16   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 05/15] sparc: " André Almeida
2026-11-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
2026-11-05 20:05 ` [PATCH v9 08/15] mips: Use the common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot [this message]
2026-11-11  7:43   ` Magnus Lindholm
2026-11-12 15:13     ` André Almeida
2026-11-05 20:05 ` [PATCH v9 12/15] alpha: Use the common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
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-06 20:33   ` sashiko-bot
2026-11-12 14:15   ` Arnd Bergmann
2026-11-05 20:05 ` [PATCH v9 15/15] arm: Use common syscall table André Almeida
2026-11-06 20:33   ` sashiko-bot

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=sashiko-outbox-202224@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=andrealmeid@igalia.com \
    --cc=arnd@arndb.de \
    --cc=borntraeger@linux.ibm.com \
    --cc=brauner@kernel.org \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=kernel-dev@igalia.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=nathan@kernel.org \
    --cc=nsc@kernel.org \
    --cc=sashiko-reviews@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.