]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/Sandy Bridge: mark arrays in __init functions as __initconst
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 14 Jan 2013 04:36:39 +0000 (20:36 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:52 +0000 (04:33 +0000)
commit91c90db1aa92a50fa1d7f289502b49ddb46a90d3
tree81cf4ce1fc6258f462f297415be768eb4b3880d3
parente9bb67a262bf49f21011e82199730a10024271c4
x86/Sandy Bridge: mark arrays in __init functions as __initconst

commit ab3cd8670e0b3fcde7f029e1503ed3c5138e9571 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/setup.c