diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-05-29 00:01:28 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-06-04 13:11:47 +0200 |
commit | be524fb96081e9e511d993ebf39b05a32b19476e (patch) | |
tree | 14aa6462c322f03aa644bab58b039ee92f2fd456 /arch/x86 | |
parent | 282c454cd3a7041f59a37112bb2f82263bc38f6c (diff) |
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')
-rw-r--r-- | arch/x86/mm/pat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |