diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-13 23:36:39 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-13 23:36:39 -0500 |
commit | ab3cd8670e0b3fcde7f029e1503ed3c5138e9571 (patch) | |
tree | 188b16e6509c8732cccbdeda2ffbbc6c36fa74b0 /arch | |
parent | a9acc5365dbda29f7be2884efb63771dc24bd815 (diff) |
x86/Sandy Bridge: mark arrays in __init functions as __initconst
Mark static arrays as __initconst so they get removed when the init
sections are flushed.
Reported-by: Mathias Krause <minipli@googlemail.com>
Link: http://lkml.kernel.org/r/75F4BEE6-CB0E-4426-B40B-697451677738@googlemail.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 9dcb32545032..18182d19b71b 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -614,7 +614,7 @@ static bool __init snb_gfx_workaround_needed(void) | |||
614 | { | 614 | { |
615 | int i; | 615 | int i; |
616 | u16 vendor, devid; | 616 | u16 vendor, devid; |
617 | static const u16 snb_ids[] = { | 617 | static const __initconst u16 snb_ids[] = { |
618 | 0x0102, | 618 | 0x0102, |
619 | 0x0112, | 619 | 0x0112, |
620 | 0x0122, | 620 | 0x0122, |
@@ -646,7 +646,7 @@ static bool __init snb_gfx_workaround_needed(void) | |||
646 | */ | 646 | */ |
647 | static void __init trim_snb_memory(void) | 647 | static void __init trim_snb_memory(void) |
648 | { | 648 | { |
649 | static const unsigned long bad_pages[] = { | 649 | static const __initconst unsigned long bad_pages[] = { |
650 | 0x20050000, | 650 | 0x20050000, |
651 | 0x20110000, | 651 | 0x20110000, |
652 | 0x20130000, | 652 | 0x20130000, |