The patch titled init/main.c: fix section mismatch warning has been added to the -mm tree. Its filename is init-mainc-section-mismatch-warning-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: init/main.c: fix section mismatch warning From: "Rakib Mullick" <rakib.mullick@xxxxxxxxx> LD init/built-in.o WARNING: init/built-in.o(.text+0x207): Section mismatch in reference from the function init_post() to the function .init.text:prepare_namespace() The function init_post() references the function __init prepare_namespace(). This is often because init_post lacks a __init annotation or the annotation of prepare_namespace is wrong. init_post() has only one callsite and that is an __init function. So by correctly marking init_post() as __init, we no longer care whether or not it gets inlined into its __init caller. Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Md.Rakib H. Mullick <rakib.mullick@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- init/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN init/main.c~init-mainc-section-mismatch-warning-fix init/main.c --- a/init/main.c~init-mainc-section-mismatch-warning-fix +++ a/init/main.c @@ -858,10 +858,7 @@ static void run_init_process(char *init_ kernel_execve(init_filename, argv_init, envp_init); } -/* This is a non __init function. Force it to be noinline otherwise gcc - * makes it inline to init() and it becomes part of init.text section - */ -static int noinline init_post(void) +static int __init init_post(void) { int retry_count = 1; free_initmem(); _ Patches currently in -mm which might be from rakib.mullick@xxxxxxxxx are init-mainc-section-mismatch-warning-fix.patch cpusetc-remove-extra-variable.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html