]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
module.h: relocate MODULE_PARM_DESC into moduleparam.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 30 Aug 2011 15:24:44 +0000 (11:24 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 13:20:11 +0000 (09:20 -0400)
There are files which use module_param and MODULE_PARM_DESC
back to back.  They only include moduleparam.h which makes sense,
but the implicit presence of module.h everywhere hid the fact
that MODULE_PARM_DESC wasn't in moduleparam.h at all.  Relocate
the macro to moduleparam.h so that the moduleparam infrastructure
can be used independently of module.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/linux/module.h
include/linux/moduleparam.h

index 9f0ddc808a829e36f277408f4f35ead49b336157..3cb7839a60b96ffc6e4fe9b28d0ddf491275b2f6 100644 (file)
@@ -135,11 +135,6 @@ extern const struct gtype##_id __mod_##gtype##_table               \
 /* What your module does. */
 #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description)
 
-/* One for each parameter, describing how to use it.  Some files do
-   multiple of these per line, so can't just use MODULE_INFO. */
-#define MODULE_PARM_DESC(_parm, desc) \
-       __MODULE_INFO(parm, _parm, #_parm ":" desc)
-
 #define MODULE_DEVICE_TABLE(type,name)         \
   MODULE_GENERIC_TABLE(type##_device,name)
 
index fffb10bd55145a8e72768526bf97c0157d942073..7939f636c8bae3c747b604c98472d34de620ab70 100644 (file)
@@ -31,6 +31,11 @@ static const char __module_cat(name,__LINE__)[]                                \
 #define __MODULE_PARM_TYPE(name, _type)                                          \
   __MODULE_INFO(parmtype, name##type, #name ":" _type)
 
+/* One for each parameter, describing how to use it.  Some files do
+   multiple of these per line, so can't just use MODULE_INFO. */
+#define MODULE_PARM_DESC(_parm, desc) \
+       __MODULE_INFO(parm, _parm, #_parm ":" desc)
+
 struct kernel_param;
 
 struct kernel_param_ops {