提交 ab3cd867 编写于 作者: H H. Peter Anvin

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: NMathias Krause <minipli@googlemail.com>
Link: http://lkml.kernel.org/r/75F4BEE6-CB0E-4426-B40B-697451677738@googlemail.comSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 a9acc536
...@@ -614,7 +614,7 @@ static bool __init snb_gfx_workaround_needed(void) ...@@ -614,7 +614,7 @@ static bool __init snb_gfx_workaround_needed(void)
{ {
int i; int i;
u16 vendor, devid; u16 vendor, devid;
static const u16 snb_ids[] = { static const __initconst u16 snb_ids[] = {
0x0102, 0x0102,
0x0112, 0x0112,
0x0122, 0x0122,
...@@ -646,7 +646,7 @@ static bool __init snb_gfx_workaround_needed(void) ...@@ -646,7 +646,7 @@ static bool __init snb_gfx_workaround_needed(void)
*/ */
static void __init trim_snb_memory(void) static void __init trim_snb_memory(void)
{ {
static const unsigned long bad_pages[] = { static const __initconst unsigned long bad_pages[] = {
0x20050000, 0x20050000,
0x20110000, 0x20110000,
0x20130000, 0x20130000,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册