kernel: use macros from compiler.h instead of __attribute__((...))
authorGideon Israel Dsouza <gidisrael@gmail.com>
Mon, 7 Apr 2014 22:39:20 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:11 +0000 (16:36 -0700)
commit52f5684c8e1ec7463192aba8e2916df49807511a
treef8e6061de05014e89e58638f626831f2c38af971
parentce816fa88cca083c47ab9000b2138a83043a78be
kernel: use macros from compiler.h instead of __attribute__((...))

To increase compiler portability there is <linux/compiler.h> which
provides convenience macros for various gcc constructs.  Eg: __weak for
__attribute__((weak)).  I've replaced all instances of gcc attributes
with the right macro in the kernel subsystem.

Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 files changed:
kernel/fork.c
kernel/kallsyms.c
kernel/kexec.c
kernel/ksysfs.c
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/suspend.c
kernel/power/swap.c
kernel/sched/clock.c
kernel/sched/core.c
kernel/signal.c
kernel/time/timekeeping.c
kernel/trace/trace.h