summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/pat.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-05-29 00:01:28 -0700
committerThomas Gleixner <tglx@linutronix.de>2008-06-04 13:11:47 +0200
commitbe524fb96081e9e511d993ebf39b05a32b19476e (patch)
tree14aa6462c322f03aa644bab58b039ee92f2fd456 /arch/x86/mm/pat.c
parent282c454cd3a7041f59a37112bb2f82263bc38f6c (diff)
downloadop-kernel-dev-be524fb96081e9e511d993ebf39b05a32b19476e.zip
op-kernel-dev-be524fb96081e9e511d993ebf39b05a32b19476e.tar.gz
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;
OpenPOWER on IntegriCloud