diff options
| author | Richard Henderson <rth@twiddle.net> | 2002-12-29 01:48:01 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-29 01:48:01 -0800 |
| commit | bfafc871ca1ea430dd7422fdfdfe0fa2e959c566 (patch) | |
| tree | 78a1f32479d711f0d70803f860e39c813b48df8c /include/linux/moduleparam.h | |
| parent | 35bc6f3f8db6a6412fcb6fb9a251a1083094ca47 (diff) | |
[PATCH] Trivial patch for param.h: make it const.
Add a const declaration to the __module_param_call so __param section
gets more correct attributes.
Diffstat (limited to 'include/linux/moduleparam.h')
| -rw-r--r-- | include/linux/moduleparam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index 92a1bc154e8e..e52553263640 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h @@ -39,7 +39,7 @@ struct kparam_string { 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 } |
