diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index e135cc79acee..3319a5269d28 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -244,22 +244,14 @@ struct module_kobject *lookup_or_create_module_kobject(const char *name); /* What your module does. */ #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description) -/* - * Format: __mod_device_table__kmod_<modname>__<type>__<name> - * Parts of the string `__kmod_` and `__` are used as delimiters when parsing - * a symbol in file2alias.c - */ -#define __mod_device_table(type, name) \ - __PASTE(__mod_device_table__, \ - __PASTE(__KBUILD_MODNAME, \ - __PASTE(__, \ - __PASTE(type, \ - __PASTE(__, name))))) - +#ifdef MODULE /* Creates an alias so file2alias.c can find device table. */ #define MODULE_DEVICE_TABLE(type, name) \ -static typeof(name) __mod_device_table(type, name) \ +static typeof(name) __mod_device_table__##type##__##name \ __attribute__ ((used, alias(__stringify(name)))) +#else /* !MODULE */ +#define MODULE_DEVICE_TABLE(type, name) +#endif /* Version of form [<epoch>:]<version>[-<extra-version>]. * Or for CVS/RCS ID version, everything but the number is stripped. |