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 PERCPU_VADDR()

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-14-brgerst@gmail.com

authored by

Brian Gerst and committed by
Ingo Molnar
e23cff68 95b09161

+1 -35
+1 -35
include/asm-generic/vmlinux.lds.h
··· 1073 1073 __per_cpu_end = .; 1074 1074 1075 1075 /** 1076 - * PERCPU_VADDR - define output section for percpu area 1076 + * PERCPU_SECTION - define output section for percpu area 1077 1077 * @cacheline: cacheline size 1078 - * @vaddr: explicit base address (optional) 1079 - * @phdr: destination PHDR (optional) 1080 1078 * 1081 1079 * Macro which expands to output section for percpu area. 1082 1080 * 1083 1081 * @cacheline is used to align subsections to avoid false cacheline 1084 1082 * sharing between subsections for different purposes. 1085 - * 1086 - * If @vaddr is not blank, it specifies explicit base address and all 1087 - * percpu symbols will be offset from the given address. If blank, 1088 - * @vaddr always equals @laddr + LOAD_OFFSET. 1089 - * 1090 - * @phdr defines the output PHDR to use if not blank. Be warned that 1091 - * output PHDR is sticky. If @phdr is specified, the next output 1092 - * section in the linker script will go there too. @phdr should have 1093 - * a leading colon. 1094 - * 1095 - * Note that this macros defines __per_cpu_load as an absolute symbol. 1096 - * If there is no need to put the percpu section at a predetermined 1097 - * address, use PERCPU_SECTION. 1098 - */ 1099 - #define PERCPU_VADDR(cacheline, vaddr, phdr) \ 1100 - __per_cpu_load = .; \ 1101 - .data..percpu vaddr : AT(__per_cpu_load - LOAD_OFFSET) { \ 1102 - PERCPU_INPUT(cacheline) \ 1103 - } phdr \ 1104 - . = __per_cpu_load + SIZEOF(.data..percpu); 1105 - 1106 - /** 1107 - * PERCPU_SECTION - define output section for percpu area, simple version 1108 - * @cacheline: cacheline size 1109 - * 1110 - * Align to PAGE_SIZE and outputs output section for percpu area. This 1111 - * macro doesn't manipulate @vaddr or @phdr and __per_cpu_load and 1112 - * __per_cpu_start will be identical. 1113 - * 1114 - * This macro is equivalent to ALIGN(PAGE_SIZE); PERCPU_VADDR(@cacheline,,) 1115 - * except that __per_cpu_load is defined as a relative symbol against 1116 - * .data..percpu which is required for relocatable x86_32 configuration. 1117 1083 */ 1118 1084 #define PERCPU_SECTION(cacheline) \ 1119 1085 . = ALIGN(PAGE_SIZE); \