From: Andrew Morton Date: Thu, 29 May 2008 07:01:28 +0000 (-0700) Subject: x86: section mismatch fix X-Git-Tag: v2.6.26-rc5~5^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=be524fb96081e9e511d993ebf39b05a32b19476e;p=linux-2.6-omap-h63xx.git x86: section mismatch fix Fix this: WARNING: vmlinux.o(.text+0x114bb): Section mismatch in reference from the function nopat() to the function .cpuinit.text:pat_disable() The function nopat() references the function __cpuinit pat_disable(). This is often because nopat lacks a __cpuinit annotation or the annotation of pat_disable is wrong. Reported-by: "Fabio Comolli" Cc: Sam Ravnborg Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 183fdd36d3b..06b7a1c90fb 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c @@ -34,7 +34,7 @@ void __cpuinit pat_disable(char *reason) printk(KERN_INFO "%s\n", reason); } -static int nopat(char *str) +static int __init nopat(char *str) { pat_disable("PAT support disabled."); return 0;