Skip to contentSkip to conversation

percpu: use __weak only in the definition of weak percpu variables

PATCH New Tejun Heo 1 participant 1 message Jun 29, 2009

Subsystems (2)
lore
Share & tools
lore

Tejun Heo

author maintainer
#0 lore raw

PATCH 1/1 percpu: use __weak only in the definition of weak percpu variables

__weak is necessary only for definition and might even not work in declaration. Drop it from declaration.

This change was suggested by Ivan Kokshaysky.

---
Committed to percpu#for-next. Thanks.

 include/linux/percpu-defs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/percpu-defs.h +1 -1
index cf32838..9b7a53c 100644
@@ -56,7 +56,7 @@
  */
 #define DECLARE_PER_CPU_SECTION(type, name, sec)			\
 	extern __PCPU_DUMMY_ATTRS char __pcpu_scope_##name;		\
-	extern __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name
+	extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
 
 #define DEFINE_PER_CPU_SECTION(type, name, sec)				\
 	__PCPU_DUMMY_ATTRS char __pcpu_scope_##name;			\
Signature · 1 line
1.6.0.2