]> git.baikalelectronics.ru Git - kernel.git/commit
module.h: simplify MODULE_IMPORT_NS
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 09:03:21 +0000 (11:03 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 12 May 2022 17:29:41 +0000 (10:29 -0700)
commitc4b84a8b9163624b8fc8d237c87052d1a98a3368
treea71ab8bca2daf077edaf77b4dfb9ad0e77a18e16
parent9aa158a91cb19119e554c3ad33077c7164193db0
module.h: simplify MODULE_IMPORT_NS

In commit 778c7624f275 ("module.h: allow #define strings to work with
MODULE_IMPORT_NS") I fixed up the MODULE_IMPORT_NS() macro to allow
defined strings to work with it.  Unfortunatly I did it in a two-stage
process, when it could just be done with the __stringify() macro as
pointed out by Masahiro Yamada.

Clean this up to only be one macro instead of two steps to achieve the
same end result.

Fixes: 778c7624f275 ("module.h: allow #define strings to work with MODULE_IMPORT_NS")
Reported-by: Masahiro Yamada <masahiroy@kernel.org>
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>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/module.h