aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu-defs.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-06-29 04:45:39 -0400
committerTejun Heo <tj@kernel.org>2009-06-29 04:45:39 -0400
commit1a8dd307cc0a2119be4e578c517795464e6dabba (patch)
treec98117633ce514891016f4343c284b3e861e3f6d /include/linux/percpu-defs.h
parentbf4bb2b1f285ec56e7f3cbf0190761b42131871c (diff)
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. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Diffstat (limited to 'include/linux/percpu-defs.h')
-rw-r--r--include/linux/percpu-defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h
index cf32838ad0fa..9b7a53cc16eb 100644
--- a/include/linux/percpu-defs.h
+++ b/include/linux/percpu-defs.h
@@ -56,7 +56,7 @@
56 */ 56 */
57#define DECLARE_PER_CPU_SECTION(type, name, sec) \ 57#define DECLARE_PER_CPU_SECTION(type, name, sec) \
58 extern __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \ 58 extern __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \
59 extern __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name 59 extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name
60 60
61#define DEFINE_PER_CPU_SECTION(type, name, sec) \ 61#define DEFINE_PER_CPU_SECTION(type, name, sec) \
62 __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \ 62 __PCPU_DUMMY_ATTRS char __pcpu_scope_##name; \