hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/percpu-defs.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/percpu-defs.h - basic definitions for percpu areas
34 *
....@@ -50,7 +51,7 @@
5051 PER_CPU_ATTRIBUTES
5152
5253 #define __PCPU_DUMMY_ATTRS \
53
- __attribute__((section(".discard"), unused))
54
+ __section(".discard") __attribute__((unused))
5455
5556 /*
5657 * s390 and alpha modules require percpu variables to be defined as
....@@ -91,8 +92,7 @@
9192 extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
9293 __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
9394 extern __PCPU_ATTRS(sec) __typeof__(type) name; \
94
- __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \
95
- __typeof__(type) name
95
+ __PCPU_ATTRS(sec) __weak __typeof__(type) name
9696 #else
9797 /*
9898 * Normal declaration and definition macros.
....@@ -101,8 +101,7 @@
101101 extern __PCPU_ATTRS(sec) __typeof__(type) name
102102
103103 #define DEFINE_PER_CPU_SECTION(type, name, sec) \
104
- __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \
105
- __typeof__(type) name
104
+ __PCPU_ATTRS(sec) __typeof__(type) name
106105 #endif
107106
108107 /*