]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
moduleparam: fix alpha, ia64 and ppc64 compile failures
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Sat, 19 Jul 2008 12:57:03 +0000 (15:57 +0300)
committerAdrian Bunk <bunk@kernel.org>
Sat, 19 Jul 2008 12:57:03 +0000 (15:57 +0300)
commit63278e95f80eef7d2d9868571949c459f9b02a09
treec8446ee4aef4b91a19b235e8d3c421c479fcc629
parent23a22510e95a7dafa38bbdd076daa0bb28b18ff8
moduleparam: fix alpha, ia64 and ppc64 compile failures

On alpha, ia64 and ppc64 only relocations to local data can go into
read-only sections. The vast majority of module parameters use the global
generic param_set_*/param_get_* functions, so the 'const' attribute for
struct kernel_param is not only useless, but it also causes compile
failures due to 'section type conflict' in those rare cases where
param_set/get are local functions.

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=8964

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
include/linux/moduleparam.h