summaryrefslogtreecommitdiff
path: root/arch/x86/mm/pat.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-05-29 07:01:28 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2008-06-04 11:11:47 (GMT)
commitbe524fb96081e9e511d993ebf39b05a32b19476e (patch)
tree14aa6462c322f03aa644bab58b039ee92f2fd456 /arch/x86/mm/pat.c
parent282c454cd3a7041f59a37112bb2f82263bc38f6c (diff)
downloadlinux-be524fb96081e9e511d993ebf39b05a32b19476e.tar.xz
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" <fabio.comolli@gmail.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pat.c')
-rw-r--r--arch/x86/mm/pat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c
index 183fdd3..06b7a1c 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;