patch-2.3.40 linux/include/linux/module.h

Next file: linux/include/linux/ncp_fs.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/include/linux/module.h linux/include/linux/module.h
@@ -188,6 +188,10 @@
 __attribute__((section(".modinfo"))) =		\
 "parm_desc_" __MODULE_STRING(var) "=" desc
 
+#define MODULE_DEVICE_TABLE(type,name)	\
+const struct type##_device_id * __module_##type##_device_table = name
+/* not put to .modinfo section to avoid section type conflicts */
+
 /* The attributes of a section are set the first time the section is
    seen; we want .modinfo to not be allocated.  */
 
@@ -218,6 +222,7 @@
 #define MODULE_SUPPORTED_DEVICE(name)
 #define MODULE_PARM(var,type)
 #define MODULE_PARM_DESC(var,desc)
+#define MODULE_DEVICE_TABLE(type,name)
 
 #ifndef __GENKSYMS__
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)