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.

x86/percpu: Construct __percpu_seg_override from __percpu_seg

Construct __percpu_seg_override macro from __percpu_seg by
concatenating the later with __seg_ prefix to reduce ifdeffery.

No functional change intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250225200235.48007-1-ubizjak@gmail.com

authored by

Uros Bizjak and committed by
Ingo Molnar
79165720 c4f23a9d

+2 -6
+2 -6
arch/x86/include/asm/percpu.h
··· 22 22 23 23 #else /* !__ASSEMBLY__: */ 24 24 25 + #include <linux/args.h> 25 26 #include <linux/build_bug.h> 26 27 #include <linux/stringify.h> 27 28 #include <asm/asm.h> ··· 36 35 # define __seg_fs __attribute__((address_space(__seg_fs))) 37 36 #endif 38 37 39 - #ifdef CONFIG_X86_64 40 - # define __percpu_seg_override __seg_gs 41 - #else 42 - # define __percpu_seg_override __seg_fs 43 - #endif 44 - 38 + #define __percpu_seg_override CONCATENATE(__seg_, __percpu_seg) 45 39 #define __percpu_prefix "" 46 40 47 41 #else /* !CONFIG_CC_HAS_NAMED_AS: */