mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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
This commit is contained in:
parent
c4f23a9d6e
commit
79165720f3
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#else /* !__ASSEMBLY__: */
|
||||
|
||||
#include <linux/args.h>
|
||||
#include <linux/build_bug.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <asm/asm.h>
|
||||
|
|
@ -35,12 +36,7 @@
|
|||
# define __seg_fs __attribute__((address_space(__seg_fs)))
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
# define __percpu_seg_override __seg_gs
|
||||
#else
|
||||
# define __percpu_seg_override __seg_fs
|
||||
#endif
|
||||
|
||||
#define __percpu_seg_override CONCATENATE(__seg_, __percpu_seg)
|
||||
#define __percpu_prefix ""
|
||||
|
||||
#else /* !CONFIG_CC_HAS_NAMED_AS: */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user