Commit 25c16b99 authored by Randy Dunlap's avatar Randy Dunlap Committed by Andi Kleen

[PATCH] i386: fix mtrr sections

Fix section mismatch warnings in mtrr code.
Fix line length on one source line.

WARNING: arch/x86_64/kernel/built-in.o - Section mismatch: reference to .init.data: from .text.get_mtrr_state after 'get_mtrr_state' (at offset 0x103)
WARNING: arch/x86_64/kernel/built-in.o - Section mismatch: reference to .init.text: from .text.get_mtrr_state after 'get_mtrr_state' (at offset 0x180)
WARNING: arch/x86_64/kernel/built-in.o - Section mismatch: reference to .init.text: from .text.get_mtrr_state after 'get_mtrr_state' (at offset 0x199)
WARNING: arch/x86_64/kernel/built-in.o - Section mismatch: reference to .init.text: from .text.get_mtrr_state after 'get_mtrr_state' (at offset 0x1c1)
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 70ae77f4
...@@ -38,7 +38,7 @@ static struct mtrr_state mtrr_state = {}; ...@@ -38,7 +38,7 @@ static struct mtrr_state mtrr_state = {};
#undef MODULE_PARAM_PREFIX #undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "mtrr." #define MODULE_PARAM_PREFIX "mtrr."
static __initdata int mtrr_show; static int mtrr_show;
module_param_named(show, mtrr_show, bool, 0); module_param_named(show, mtrr_show, bool, 0);
/* Get the MSR pair relating to a var range */ /* Get the MSR pair relating to a var range */
...@@ -68,12 +68,13 @@ void mtrr_save_fixed_ranges(void *info) ...@@ -68,12 +68,13 @@ void mtrr_save_fixed_ranges(void *info)
get_fixed_ranges(mtrr_state.fixed_ranges); get_fixed_ranges(mtrr_state.fixed_ranges);
} }
static void __init print_fixed(unsigned base, unsigned step, const mtrr_type*types) static void __cpuinit print_fixed(unsigned base, unsigned step, const mtrr_type*types)
{ {
unsigned i; unsigned i;
for (i = 0; i < 8; ++i, ++types, base += step) for (i = 0; i < 8; ++i, ++types, base += step)
printk(KERN_INFO "MTRR %05X-%05X %s\n", base, base + step - 1, mtrr_attrib_to_str(*types)); printk(KERN_INFO "MTRR %05X-%05X %s\n",
base, base + step - 1, mtrr_attrib_to_str(*types));
} }
/* Grab all of the MTRR state for this CPU into *state */ /* Grab all of the MTRR state for this CPU into *state */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment