From: Rusty Russell <rusty@rustcorp.com.au>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org, rth@twiddle.net
Subject: [PATCH] Trivial patch for param.h: make it const.
Date: Fri, 27 Dec 2002 21:24:40 +1100 [thread overview]
Message-ID: <20021227104328.0DFEC2C056@lists.samba.org> (raw)
[ 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.
reply other threads:[~2002-12-27 10:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021227104328.0DFEC2C056@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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