lkml.org 
[lkml]   [2002]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Trivial patch for param.h: make it const.
Date
[ 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.
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.032 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site