diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-29 10:43:28 -0800 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-30 12:08:42 -0800 | 
| commit | 78d86c213f28193082b5d8a1a424044b7ba406f1 (patch) | |
| tree | f40328af1f8e9817c09d3960ade6e3ae5ab45673 /include/linux/init.h | |
| parent | da095fd3d5063f2dd03468d71f7df39a0430d86f (diff) | |
| download | olio-linux-3.10-78d86c213f28193082b5d8a1a424044b7ba406f1.tar.xz olio-linux-3.10-78d86c213f28193082b5d8a1a424044b7ba406f1.zip  | |
init.h: Remove __dev* sections from the kernel
With the recent work to remove CONFIG_HOTPLUG, we are starting to get a
bunch of __devinit section warnings, despite CONFIG_HOTPLUG always being
enabled.  So, stop marking the sections entirely, by defining them away
the section markings in init.h
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/init.h')
| -rw-r--r-- | include/linux/init.h | 18 | 
1 files changed, 7 insertions, 11 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index e59041e21df..f63692d6902 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -93,13 +93,13 @@  #define __exit          __section(.exit.text) __exitused __cold notrace -/* Used for HOTPLUG */ -#define __devinit        __section(.devinit.text) __cold notrace -#define __devinitdata    __section(.devinit.data) -#define __devinitconst   __constsection(.devinit.rodata) -#define __devexit        __section(.devexit.text) __exitused __cold notrace -#define __devexitdata    __section(.devexit.data) -#define __devexitconst   __constsection(.devexit.rodata) +/* Used for HOTPLUG, but that is always enabled now, so just make them noops */ +#define __devinit +#define __devinitdata +#define __devinitconst +#define __devexit +#define __devexitdata +#define __devexitconst  /* Used for HOTPLUG_CPU */  #define __cpuinit        __section(.cpuinit.text) __cold notrace @@ -126,10 +126,6 @@  #define __INITRODATA	.section	".init.rodata","a",%progbits  #define __FINITDATA	.previous -#define __DEVINIT        .section	".devinit.text", "ax" -#define __DEVINITDATA    .section	".devinit.data", "aw" -#define __DEVINITRODATA  .section	".devinit.rodata", "a" -  #define __CPUINIT        .section	".cpuinit.text", "ax"  #define __CPUINITDATA    .section	".cpuinit.data", "aw"  #define __CPUINITRODATA  .section	".cpuinit.rodata", "a"  |