Trivial patch for param.h: make it const.
PATCH 1/1 Trivial patch for param.h: make it const.
[ Another trivial RTH patch ]
Name: Param Should be Const
From: Richard Henderson <[email protected]>
Status: Trivial
D: Add a const declaration to the __module_param_call so __param section
D: gets more correct attributes.
===== include/linux/moduleparam.h 1.1 vs edited =====
include/linux/moduleparam.h +1 -1
@@ -39,7 +39,7 @@writable. */ #define __module_param_call (prefix, name, set, get, arg, perm) \ static char __param_str_##name[] __initdata = prefix #name; \ - static struct kernel_param __param_##name \ + static struct kernel_param const __param_##name \ __attribute__ ((unused,__section__ ("__param"))) \ = { __param_str_##name, perm, set, get, arg }
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.