Skip to content

Remove redundant extern declarations

Safocl Stollmannovic linux-arch linux-arm-kernel linux-efi linux-mips linux-pm linux-riscv linux-um lkml loongarch openrisc printk 3 versions – Applied

Status from this message: I applied v2 which was not different to this tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 2 repliesApplied
  2. v210 patches 1 replySuperseded
  3. v110 patches 1 replySuperseded

Changes in v3 from the cover letter

- Split into separate patches for suspend, start_kernel, sched/task, printk, and lockdep

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/14ARM: fix duplicate extern declarationsarch/arm/include/asm/bug.h arch/arm/include/asm/opcodes.h+2 -20 replies
2/14loongarch: fix duplicate extern declarationsarch/loongarch/include/asm/idle.h arch/loongarch/include/asm/smp.h arch/loongarch/include/asm/switch_to.h+4 -40 replies
3/14microblaze: fix duplicate extern declarationsarch/microblaze/include/asm/entry.h arch/microblaze/kernel/microblaze_ksyms.c+2 -20 replies
4/14MIPS: fix duplicate extern declarationsarch/mips/cavium-octeon/setup.c arch/mips/include/asm/bmips.h arch/mips/include/asm/idle.h +7 more+39 -390 replies
5/14openrisc: fix duplicate extern declarationsarch/openrisc/kernel/process.c+1 -10 replies
6/14riscv: fix duplicate extern declarationsarch/riscv/include/asm/string.h arch/riscv/kernel/process.c arch/riscv/kernel/stacktrace.c+15 -150 replies
7/14x86: fix duplicate extern declarationsarch/x86/include/asm/efi.h arch/x86/include/asm/gsseg.h arch/x86/include/asm/preempt.h +4 more+12 -120 replies
8/14drivers: fix duplicate extern declarationsdrivers/soc/bcm/brcmstb/pm/pm.h+3 -31 reply
9/14sched/preempt: fix duplicate extern declarationsinclude/asm-generic/preempt.h+2 -20 replies
10/14lockdep: fix duplicate extern declarationsinclude/linux/lockdep.h+1 -10 replies
11/14printk: fix duplicate extern declarationsinclude/linux/printk.h+3 -30 replies
12/14shed/task: fix duplicate extern declarationsinclude/linux/sched/task.h+1 -10 replies
13/14start_kernel: fix duplicate extern declarationsinclude/linux/start_kernel.h+1 -10 replies
14/14suspend: fix duplicate extern declarationsinclude/linux/suspend.h+2 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/14] Remove redundant extern declarations

Compiling a kernel module with a C++ compiler results in a "duplicate extern specifier" error.
This occurs because the code contains extern asmlinkage, and asmlinkage expands to extern C when processed by a C++ compiler.
Since the code already contains sections that respond to a C++ compiler, I believe it is a perfectly valid approach to gradually move toward a state where kernel modules can be compiled by a C++ compiler without any issues. The extern specifier must be removed.

Changes in v3:
- Split into separate patches for suspend, start_kernel, sched/task, printk, and lockdep

Safocl Stollmannovic (14):
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
lockdep: fix duplicate extern declarations
printk: fix duplicate extern declarations shed/task: fix duplicate extern declarations
start_kernel: fix duplicate extern declarations
suspend: 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(-)
Signature · 1 line
2.56.1