mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Trivial patch for param.h: make it const.
@ 2002-12-27 10:24 Rusty Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2002-12-27 10:24 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, rth

[ Another trivial RTH patch ]

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-27 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-27 10:24 [PATCH] Trivial patch for param.h: make it const Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome