From: Safocl Stollmannovic <safocl88@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH v2 00/10] Remove redundant extern declarations
Date: Fri, 13 Nov 2026 05:06:05 +0400 [thread overview]
Message-ID: <20261113010631.139191-1-safocl88@gmail.com> (raw)
This series removes unnecessary extern keywords from function declarations
that use asmlinkage across various architectures and core subsystems.
In C, function declarations at file scope have external linkage by
default, making the explicit extern keyword redundant. Additionally,
asmlinkage already expands to extern "C" when __cplusplus is defined,
so combining it with extern results in duplicate linkage specifiers.
Changes in v2:
- Fix commit messages corrupted by shell expansion in v1.
- Clarify the rationale based on C linkage rules and asmlinkage macro
expansion rather than C++ module compilation.
- Format the Bugzilla URL using the standard Link: tag.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=222257
Safocl Stollmannovic (10):
ARM: fix duplicate extern declarations
loongarch: fix duplicate extern declarations
microblaze: fix duplicate extern declarations
MIPS: fix duplicate extern declarations
openrisc: fix duplicate extern declarations
riscv: fix duplicate extern declarations
x86: fix duplicate extern declarations
drivers: fix duplicate extern declarations
sched/preempt: fix duplicate extern declarations
kernel: fix duplicate extern declarations
arch/arm/include/asm/bug.h | 2 +-
arch/arm/include/asm/opcodes.h | 2 +-
arch/loongarch/include/asm/idle.h | 2 +-
arch/loongarch/include/asm/smp.h | 4 +-
arch/loongarch/include/asm/switch_to.h | 2 +-
arch/microblaze/include/asm/entry.h | 2 +-
arch/microblaze/kernel/microblaze_ksyms.c | 2 +-
arch/mips/cavium-octeon/setup.c | 2 +-
arch/mips/include/asm/bmips.h | 2 +-
arch/mips/include/asm/idle.h | 2 +-
arch/mips/include/asm/paccess.h | 4 +-
arch/mips/include/asm/ptrace.h | 4 +-
arch/mips/include/asm/smp.h | 2 +-
arch/mips/include/asm/switch_to.h | 2 +-
arch/mips/kernel/r4k-bugs64.c | 2 +-
arch/mips/kernel/signal-common.h | 8 ++--
arch/mips/kernel/traps.c | 50 +++++++++++------------
arch/openrisc/kernel/process.c | 2 +-
arch/riscv/include/asm/string.h | 24 +++++------
arch/riscv/kernel/process.c | 4 +-
arch/riscv/kernel/stacktrace.c | 2 +-
arch/x86/include/asm/efi.h | 2 +-
arch/x86/include/asm/gsseg.h | 2 +-
arch/x86/include/asm/preempt.h | 8 ++--
arch/x86/include/asm/processor.h | 2 +-
arch/x86/include/asm/suspend.h | 2 +-
arch/x86/um/sys_call_table_32.c | 4 +-
arch/x86/um/sys_call_table_64.c | 4 +-
drivers/soc/bcm/brcmstb/pm/pm.h | 6 +--
include/asm-generic/preempt.h | 4 +-
include/linux/lockdep.h | 2 +-
include/linux/printk.h | 6 +--
include/linux/sched/task.h | 2 +-
include/linux/start_kernel.h | 2 +-
include/linux/suspend.h | 4 +-
35 files changed, 88 insertions(+), 88 deletions(-)
--
2.56.1
next reply other threads:[~2026-11-13 1:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 1:06 Safocl Stollmannovic [this message]
2026-11-13 1:06 ` [PATCH v2 01/10] ARM: fix duplicate " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 02/10] loongarch: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 03/10] microblaze: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 04/10] MIPS: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 05/10] openrisc: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 06/10] riscv: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 07/10] x86: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 08/10] drivers: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 09/10] sched/preempt: " Safocl Stollmannovic
2026-11-13 1:06 ` [PATCH v2 10/10] kernel: " Safocl Stollmannovic
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=20261113010631.139191-1-safocl88@gmail.com \
--to=safocl88@gmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®