From nobody Sat Jul 25 23:06:00 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30AF83AC0C7; Sun, 12 Jul 2026 12:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783860246; cv=none; b=Gh83fq/cLp/skJE3qAKa9RwRTCBy4bSmWpKZVoLnjtWSRrgDXjxYfTcBDQNa2VDrixWZ9u9MMsrogOWkCkP6+lxnySGXr3K14uLAGIESJ2dZ7sIRssU3/lytYoECpxjEiJG/cgdSEI4EAo4ADOblFjOSA7nu0W9GndJeAUVp9YA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783860246; c=relaxed/simple; bh=3v7g3EyfPFtIwJkGUSNZE9WZ6IyjDPlnWFVIl+eBOyU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WOevJ0wvtCUFZpJaApV6bL/o49b8sQuIxqU7ovYkEoAXAZ/VBM4EAdgYtiVydI9fpxFdlUCxHXpxvATsmnKiaq5r91smutylf7ziqVU4lZa4rFgLbr4oPPZhuT7SMmw/e5vKN8zjpd7nnBi/cqGEHv2ETMmS2LjESwNdELTUi8w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sJiYdGWi; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PsQD1PC3; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sJiYdGWi"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PsQD1PC3" Date: Sun, 12 Jul 2026 12:43:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783860238; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p2uXsemcnxy1gHY9hIuh4r4blbToadFqAhsID+rOQSM=; b=sJiYdGWi1Yq4Ug1hV0O/AAnlqsfB0xao0N8yimu/sVoLP6fX/bGvnQMw8k4PhUqfeL3EJB RFptwofUjItTs/uP/w8j5hCL9/OYq+GeTG0ZE/6c1N06gSaj1RLPNTzBu10Vec2Q/PQ9zE M+m2EchX549PfA5oCYNDP2NkYrOadMDqTbFqhFrwMqQMY10vV3LawfV6TpeQQECtRePqq2 0rfrx0CVst1bGnZmIc5+Qeug4bicIbIhYGr4l1laS6306Q/4yT7llV3glgwEJdcyr48yWX agZr3tdvhrP5mYbkGB4nmosPp3TD0/kOb/CgjruXew2uwwy9nxz/1pehxF+wIQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783860238; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p2uXsemcnxy1gHY9hIuh4r4blbToadFqAhsID+rOQSM=; b=PsQD1PC3ON+jY40vyH68GoTWE5DnXWA3CcoSw7+Y5mmttlHH+jZNpg9nj1tLKKx1Ns+nk/ jha/fB5B7+Flk3Aw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/entry] x86/entry: Make syscall functions static Cc: Thomas Gleixner , "Mukesh Kumar Chaurasiya (IBM)" , Jinjie Ruan , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260707190254.438361565@kernel.org> References: <20260707190254.438361565@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178386023630.1844600.17956765143388330690.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the core/entry branch of tip: Commit-ID: 2b341c74dbf8864b6dd32119b761ceaab516249e Gitweb: https://git.kernel.org/tip/2b341c74dbf8864b6dd32119b761ceaab= 516249e Author: Thomas Gleixner AuthorDate: Tue, 07 Jul 2026 21:06:57 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 12 Jul 2026 12:38:02 +02:00 x86/entry: Make syscall functions static They are only used in the respective source files. No point in exposing them. Signed-off-by: Thomas Gleixner Tested-by: Mukesh Kumar Chaurasiya (IBM) Reviewed-by: Jinjie Ruan Reviewed-by: Mukesh Kumar Chaurasiya (IBM) Link: https://patch.msgid.link/20260707190254.438361565@kernel.org --- arch/x86/entry/syscall_32.c | 2 +- arch/x86/entry/syscall_64.c | 10 ++++++---- arch/x86/include/asm/syscall.h | 8 -------- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/arch/x86/entry/syscall_32.c b/arch/x86/entry/syscall_32.c index 2b13f1c..6e00929 100644 --- a/arch/x86/entry/syscall_32.c +++ b/arch/x86/entry/syscall_32.c @@ -41,7 +41,7 @@ const sys_call_ptr_t sys_call_table[] =3D { #endif =20 #define __SYSCALL(nr, sym) case nr: return __ia32_##sym(regs); -long ia32_sys_call(const struct pt_regs *regs, unsigned int nr) +static noinline long ia32_sys_call(const struct pt_regs *regs, unsigned in= t nr) { switch (nr) { #include diff --git a/arch/x86/entry/syscall_64.c b/arch/x86/entry/syscall_64.c index 0acd7e9..837aee7 100644 --- a/arch/x86/entry/syscall_64.c +++ b/arch/x86/entry/syscall_64.c @@ -32,7 +32,7 @@ const sys_call_ptr_t sys_call_table[] =3D { #undef __SYSCALL =20 #define __SYSCALL(nr, sym) case nr: return __x64_##sym(regs); -long x64_sys_call(const struct pt_regs *regs, unsigned int nr) +static noinline long x64_sys_call(const struct pt_regs *regs, unsigned int= nr) { switch (nr) { #include @@ -40,15 +40,17 @@ long x64_sys_call(const struct pt_regs *regs, unsigned = int nr) } } =20 -#ifdef CONFIG_X86_X32_ABI -long x32_sys_call(const struct pt_regs *regs, unsigned int nr) +static noinline long x32_sys_call(const struct pt_regs *regs, unsigned int= nr) { +#ifdef CONFIG_X86_X32_ABI switch (nr) { #include default: return __x64_sys_ni_syscall(regs); } -} +#else + return -ENOSYS; #endif +} =20 static __always_inline bool do_syscall_x64(struct pt_regs *regs, int nr) { diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h index c10dbb7..59a4060 100644 --- a/arch/x86/include/asm/syscall.h +++ b/arch/x86/include/asm/syscall.h @@ -21,14 +21,6 @@ typedef long (*sys_call_ptr_t)(const struct pt_regs *); extern const sys_call_ptr_t sys_call_table[]; =20 /* - * These may not exist, but still put the prototypes in so we - * can use IS_ENABLED(). - */ -extern long ia32_sys_call(const struct pt_regs *, unsigned int nr); -extern long x32_sys_call(const struct pt_regs *, unsigned int nr); -extern long x64_sys_call(const struct pt_regs *, unsigned int nr); - -/* * Only the low 32 bits of orig_ax are meaningful, so we return int. * This importantly ignores the high bits on 64-bit, so comparisons * sign-extend the low 32 bits.