Name: Param Should be Const
From: Richard Henderson <rth@twiddle.net>
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 =====
--- 1.1/include/linux/moduleparam.h Mon Dec 2 17:03:16 2002
+++ edited/include/linux/moduleparam.h Thu Dec 26 12:34:10 2002
@@ -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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/