From bfafc871ca1ea430dd7422fdfdfe0fa2e959c566 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 29 Dec 2002 01:48:01 -0800 Subject: [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. --- include/linux/moduleparam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') 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 } -- cgit v1.2.3