aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-06-24 02:13:52 -0400
committerTejun Heo <tj@kernel.org>2009-06-24 02:13:52 -0400
commit6088464cf1ae9fb3d2ccc0ec5feb3f5b971098d8 (patch)
tree33c35745c5960e8fd0ce5098d1d6c5f79202455e /arch/alpha
parent7c756e6e19e71f0327760d8955f7077118ebb2b1 (diff)
alpha: kill unnecessary __used attribute in PER_CPU_ATTRIBUTES
With the previous percpu variable definition change, all percpu variables are global and there's no need to specify __used, which only triggers on recent compilers anyway. Kill it. [ Impact: remove unnecessary percpu attribute ] Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/percpu.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/alpha/include/asm/percpu.h b/arch/alpha/include/asm/percpu.h
index 06c5c7a4afd3..7f0a9c4f2fd0 100644
--- a/arch/alpha/include/asm/percpu.h
+++ b/arch/alpha/include/asm/percpu.h
@@ -30,7 +30,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
30 30
31#ifndef MODULE 31#ifndef MODULE
32#define SHIFT_PERCPU_PTR(var, offset) RELOC_HIDE(&per_cpu_var(var), (offset)) 32#define SHIFT_PERCPU_PTR(var, offset) RELOC_HIDE(&per_cpu_var(var), (offset))
33#define PER_CPU_ATTRIBUTES
34#else 33#else
35/* 34/*
36 * To calculate addresses of locally defined variables, GCC uses 32-bit 35 * To calculate addresses of locally defined variables, GCC uses 32-bit
@@ -49,8 +48,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
49 : "=&r"(__ptr), "=&r"(tmp_gp)); \ 48 : "=&r"(__ptr), "=&r"(tmp_gp)); \
50 (typeof(&per_cpu_var(var)))(__ptr + (offset)); }) 49 (typeof(&per_cpu_var(var)))(__ptr + (offset)); })
51 50
52#define PER_CPU_ATTRIBUTES __used
53
54#endif /* MODULE */ 51#endif /* MODULE */
55 52
56/* 53/*
@@ -71,8 +68,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
71#define __get_cpu_var(var) per_cpu_var(var) 68#define __get_cpu_var(var) per_cpu_var(var)
72#define __raw_get_cpu_var(var) per_cpu_var(var) 69#define __raw_get_cpu_var(var) per_cpu_var(var)
73 70
74#define PER_CPU_ATTRIBUTES
75
76#endif /* SMP */ 71#endif /* SMP */
77 72
78#ifdef CONFIG_SMP 73#ifdef CONFIG_SMP