Skip to content

Commit

Permalink
init.h: remove obsolete content
Browse files Browse the repository at this point in the history
Remove apparently obsolete content from init.h referring to gcc 2.9x
and to "no_module_init".

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Jul 25, 2008
1 parent db358b4 commit 4500d06
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,7 @@ void __init parse_early_param(void);

#define security_initcall(fn) module_init(fn)

/* These macros create a dummy inline: gcc 2.9x does not count alias
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 */
/* Each module must use one module_init(). */
#define module_init(initfn) \
static inline initcall_t __inittest(void) \
{ return initfn; } \
Expand Down

0 comments on commit 4500d06

Please sign in to comment.