diff options
author | Tejun Heo <tj@kernel.org> | 2009-06-29 10:45:39 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-06-29 10:45:39 +0200 |
commit | 1a8dd307cc0a2119be4e578c517795464e6dabba (patch) | |
tree | c98117633ce514891016f4343c284b3e861e3f6d | |
parent | sparc64: fix build breakage introduced by percpu-convert-most patchset (diff) | |
download | linux-1a8dd307cc0a2119be4e578c517795464e6dabba.tar.xz linux-1a8dd307cc0a2119be4e578c517795464e6dabba.zip |
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>
-rw-r--r-- | include/linux/percpu-defs.h | 2 |
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 @@ */ #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; \ |