Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

percpu: Remove PER_CPU_FIRST_SECTION

x86-64 was the last user.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-13-brgerst@gmail.com

authored by

Brian Gerst and committed by
Ingo Molnar
95b09161 38a4968b

-13
-1
include/asm-generic/vmlinux.lds.h
··· 1062 1062 */ 1063 1063 #define PERCPU_INPUT(cacheline) \ 1064 1064 __per_cpu_start = .; \ 1065 - *(.data..percpu..first) \ 1066 1065 . = ALIGN(PAGE_SIZE); \ 1067 1066 *(.data..percpu..page_aligned) \ 1068 1067 . = ALIGN(cacheline); \
-12
include/linux/percpu-defs.h
··· 26 26 #define PER_CPU_SHARED_ALIGNED_SECTION "..shared_aligned" 27 27 #define PER_CPU_ALIGNED_SECTION "..shared_aligned" 28 28 #endif 29 - #define PER_CPU_FIRST_SECTION "..first" 30 29 31 30 #else 32 31 33 32 #define PER_CPU_SHARED_ALIGNED_SECTION "" 34 33 #define PER_CPU_ALIGNED_SECTION "..shared_aligned" 35 - #define PER_CPU_FIRST_SECTION "" 36 34 37 35 #endif 38 36 ··· 111 113 112 114 #define DEFINE_PER_CPU(type, name) \ 113 115 DEFINE_PER_CPU_SECTION(type, name, "") 114 - 115 - /* 116 - * Declaration/definition used for per-CPU variables that must come first in 117 - * the set of variables. 118 - */ 119 - #define DECLARE_PER_CPU_FIRST(type, name) \ 120 - DECLARE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION) 121 - 122 - #define DEFINE_PER_CPU_FIRST(type, name) \ 123 - DEFINE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION) 124 116 125 117 /* 126 118 * Declaration/definition used for per-CPU variables that must be cacheline