Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4500d067 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Linus Torvalds
Browse files

init.h: remove obsolete content



Remove apparently obsolete content from init.h referring to gcc 2.9x
and to "no_module_init".

Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent db358b40
Loading
Loading
Loading
Loading
+1 −7
Original line number Original line Diff line number Diff line
@@ -275,13 +275,7 @@ void __init parse_early_param(void);


#define security_initcall(fn)		module_init(fn)
#define security_initcall(fn)		module_init(fn)


/* These macros create a dummy inline: gcc 2.9x does not count alias
/* Each module must use one module_init(). */
 as usage, hence the `unused function' warning when __init functions
 are declared static. We use the dummy __*_module_inline functions
 both to kill the warning and check the type of the init/cleanup
 function. */

/* Each module must use one module_init(), or one no_module_init */
#define module_init(initfn)					\
#define module_init(initfn)					\
	static inline initcall_t __inittest(void)		\
	static inline initcall_t __inittest(void)		\
	{ return initfn; }					\
	{ return initfn; }					\