Skip to content

Commit 6088464

Browse files
committed
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>
1 parent 7c756e6 commit 6088464

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎arch/alpha/include/asm/percpu.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
3030

3131
#ifndef MODULE
3232
#define SHIFT_PERCPU_PTR(var, offset) RELOC_HIDE(&per_cpu_var(var), (offset))
33-
#define PER_CPU_ATTRIBUTES
3433
#else
3534
/*
3635
* To calculate addresses of locally defined variables, GCC uses 32-bit
@@ -49,8 +48,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
4948
: "=&r"(__ptr), "=&r"(tmp_gp)); \
5049
(typeof(&per_cpu_var(var)))(__ptr + (offset)); })
5150

52-
#define PER_CPU_ATTRIBUTES __used
53-
5451
#endif /* MODULE */
5552

5653
/*
@@ -71,8 +68,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS];
7168
#define __get_cpu_var(var) per_cpu_var(var)
7269
#define __raw_get_cpu_var(var) per_cpu_var(var)
7370

74-
#define PER_CPU_ATTRIBUTES
75-
7671
#endif /* SMP */
7772

7873
#ifdef CONFIG_SMP

0 commit comments

Comments
 (0)