Skip to content

Commit ca321ec

Browse files
gregkhmcgrof
authored andcommitted
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 <mcgrof@kernel.org> Cc: Jessica Yu <jeyu@kernel.org> Cc: Matthias Maennich <maennich@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Matthias Maennich <maennich@google.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
1 parent b1ae6dc commit ca321ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/linux/module.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ extern typeof(name) __mod_##type##__##name##_device_table \
290290
* files require multiple MODULE_FIRMWARE() specifiers */
291291
#define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
292292

293-
#define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns)
293+
#define _MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, #ns)
294+
#define MODULE_IMPORT_NS(ns) _MODULE_IMPORT_NS(ns)
294295

295296
struct notifier_block;
296297

0 commit comments

Comments
 (0)