diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
commit | c43768cbb7655ea5ff782ae250f6e2ef4297cf98 (patch) | |
tree | 3982e41dde3eecaa3739a5d1a8ed18d04bd74f01 /include/linux/percpu-defs.h | |
parent | 1a8dd307cc0a2119be4e578c517795464e6dabba (diff) | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) |
Merge branch 'master' into for-next
Pull linus#master to merge PER_CPU_DEF_ATTRIBUTES and alpha build fix
changes. As alpha in percpu tree uses 'weak' attribute instead of
inline assembly, there's no need for __used attribute.
Conflicts:
arch/alpha/include/asm/percpu.h
arch/mn10300/kernel/vmlinux.lds.S
include/linux/percpu-defs.h
Diffstat (limited to 'include/linux/percpu-defs.h')
-rw-r--r-- | include/linux/percpu-defs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 9b7a53cc16e..aefc2f12b48 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h | |||
@@ -61,7 +61,8 @@ | |||
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; \ |
63 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | 63 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ |
64 | __PCPU_ATTRS(sec) __weak __typeof__(type) per_cpu__##name | 64 | __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ |
65 | __typeof__(type) per_cpu__##name | ||
65 | #else | 66 | #else |
66 | /* | 67 | /* |
67 | * Normal declaration and definition macros. | 68 | * Normal declaration and definition macros. |
@@ -70,7 +71,8 @@ | |||
70 | extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name | 71 | extern __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name |
71 | 72 | ||
72 | #define DEFINE_PER_CPU_SECTION(type, name, sec) \ | 73 | #define DEFINE_PER_CPU_SECTION(type, name, sec) \ |
73 | __PCPU_ATTRS(sec) __typeof__(type) per_cpu__##name | 74 | __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \ |
75 | __typeof__(type) per_cpu__##name | ||
74 | #endif | 76 | #endif |
75 | 77 | ||
76 | /* | 78 | /* |