Skip to content

Commit 69a60bc

Browse files
alex-pattorvalds
authored andcommitted
percpu: remove PER_CPU_DEF_ATTRIBUTES macro
The macro is not used: $ grep -r PER_CPU_DEF_ATTRIBUTES include/linux/percpu-defs.h: __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ include/linux/percpu-defs.h: __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \ include/asm-generic/percpu.h:#ifndef PER_CPU_DEF_ATTRIBUTES include/asm-generic/percpu.h:#define PER_CPU_DEF_ATTRIBUTES It was added with b01e8dc ("alpha: fix percpu build breakage") and removed in 2009 with b01e8dc..6088464. Link: http://lkml.kernel.org/r/20180821164904.qqhcduimjznods66@K55DR.localdomain Signed-off-by: Alexander Pateenok <pateenoc@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6a32c24 commit 69a60bc

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎include/asm-generic/percpu.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ extern void setup_per_cpu_areas(void);
6262
#define PER_CPU_ATTRIBUTES
6363
#endif
6464

65-
#ifndef PER_CPU_DEF_ATTRIBUTES
66-
#define PER_CPU_DEF_ATTRIBUTES
67-
#endif
68-
6965
#define raw_cpu_generic_read(pcp) \
7066
({ \
7167
*raw_cpu_ptr(&(pcp)); \

‎include/linux/percpu-defs.h‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@
9191
extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
9292
__PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
9393
extern __PCPU_ATTRS(sec) __typeof__(type) name; \
94-
__PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \
95-
__typeof__(type) name
94+
__PCPU_ATTRS(sec) __weak __typeof__(type) name
9695
#else
9796
/*
9897
* Normal declaration and definition macros.
@@ -101,8 +100,7 @@
101100
extern __PCPU_ATTRS(sec) __typeof__(type) name
102101

103102
#define DEFINE_PER_CPU_SECTION(type, name, sec) \
104-
__PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \
105-
__typeof__(type) name
103+
__PCPU_ATTRS(sec) __typeof__(type) name
106104
#endif
107105

108106
/*

0 commit comments

Comments
 (0)