Commit 69a60bc7 authored by Alexander Pateenok's avatar Alexander Pateenok Committed by Linus Torvalds

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 b01e8dc3 ("alpha: fix percpu build breakage") and
removed in 2009 with b01e8dc3..6088464c.

Link: http://lkml.kernel.org/r/20180821164904.qqhcduimjznods66@K55DR.localdomainSigned-off-by: default avatarAlexander Pateenok <pateenoc@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6a32c246
...@@ -62,10 +62,6 @@ extern void setup_per_cpu_areas(void); ...@@ -62,10 +62,6 @@ extern void setup_per_cpu_areas(void);
#define PER_CPU_ATTRIBUTES #define PER_CPU_ATTRIBUTES
#endif #endif
#ifndef PER_CPU_DEF_ATTRIBUTES
#define PER_CPU_DEF_ATTRIBUTES
#endif
#define raw_cpu_generic_read(pcp) \ #define raw_cpu_generic_read(pcp) \
({ \ ({ \
*raw_cpu_ptr(&(pcp)); \ *raw_cpu_ptr(&(pcp)); \
......
...@@ -91,8 +91,7 @@ ...@@ -91,8 +91,7 @@
extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
__PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \
extern __PCPU_ATTRS(sec) __typeof__(type) name; \ extern __PCPU_ATTRS(sec) __typeof__(type) name; \
__PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ __PCPU_ATTRS(sec) __weak __typeof__(type) name
__typeof__(type) name
#else #else
/* /*
* Normal declaration and definition macros. * Normal declaration and definition macros.
...@@ -101,8 +100,7 @@ ...@@ -101,8 +100,7 @@
extern __PCPU_ATTRS(sec) __typeof__(type) name extern __PCPU_ATTRS(sec) __typeof__(type) name
#define DEFINE_PER_CPU_SECTION(type, name, sec) \ #define DEFINE_PER_CPU_SECTION(type, name, sec) \
__PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \ __PCPU_ATTRS(sec) __typeof__(type) name
__typeof__(type) name
#endif #endif
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment