mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
module.h: allow #define strings to work with MODULE_IMPORT_NS
The MODULE_IMPORT_NS() macro does not allow defined strings to work properly with it, so add a layer of indirection to allow this to happen. Cc: Luis Chamberlain <[email protected]> Cc: Jessica Yu <[email protected]> Cc: Matthias Maennich <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Matthias Maennich <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
This commit is contained in:
1 parent
b1ae6dc41e
commit
ca321ec743
1 file changed
+2
-1
@@ -290,7 +290,8 @@ extern typeof(name) __mod_##type##__##name##_device_table \
|
||||
* files require multiple MODULE_FIRMWARE() specifiers */
|
||||
#define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
|
||||
|
||||
#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns)
|
||||
#define _MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns)
|
||||
#define MODULE_IMPORT_NS(ns) _MODULE_IMPORT_NS(ns)
|
||||
|
||||
struct notifier_block;
|
||||
|
||||
|
||||
Reference in new issue
Block a user