mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	Remove __dev* markings from init.h
Now that all in-kernel users of __dev* are gone, let's remove them from init.h to keep them from popping up again and again. Thanks to Bill Pemberton for doing all of the hard work to make removal of this possible. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									9931faca02
								
							
						
					
					
						commit
						54b956b903
					
				
					 1 changed files with 0 additions and 20 deletions
				
			
		|  | @ -93,14 +93,6 @@ | |||
| 
 | ||||
| #define __exit          __section(.exit.text) __exitused __cold notrace | ||||
| 
 | ||||
| /* 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 | ||||
| #define __cpuinitdata    __section(.cpuinit.data) | ||||
|  | @ -337,18 +329,6 @@ void __init parse_early_options(char *cmdline); | |||
| #define __INITRODATA_OR_MODULE __INITRODATA | ||||
| #endif /*CONFIG_MODULES*/ | ||||
| 
 | ||||
| /* Functions marked as __devexit may be discarded at kernel link time, depending
 | ||||
|    on config options.  Newer versions of binutils detect references from | ||||
|    retained sections to discarded sections and flag an error.  Pointers to | ||||
|    __devexit functions must use __devexit_p(function_name), the wrapper will | ||||
|    insert either the function_name or NULL, depending on the config options. | ||||
|  */ | ||||
| #if defined(MODULE) || defined(CONFIG_HOTPLUG) | ||||
| #define __devexit_p(x) x | ||||
| #else | ||||
| #define __devexit_p(x) NULL | ||||
| #endif | ||||
| 
 | ||||
| #ifdef MODULE | ||||
| #define __exit_p(x) x | ||||
| #else | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Greg Kroah-Hartman
						Greg Kroah-Hartman