init/main: use __init_refok to fix section mismatch

Kill a special case in modpost by introducing the
__init_refok marker.

Signed-off-by: Sam Ravnborg <[email protected]>
This commit is contained in:
Sam Ravnborg 2007-05-17 20:43:54 +02:00
commit 92080309df
2 changed files with 1 additions and 15 deletions

View file

@ -423,7 +423,7 @@ static void __init setup_command_line(char *command_line)
* gcc-3.4 accidentally inlines this function, so use noinline.
*/
static void noinline rest_init(void)
static void noinline __init_refok rest_init(void)
__releases(kernel_lock)
{
int pid;