Re: [PATCH] module.h: simplify MODULE_IMPORT_NS

From: Luis Chamberlain
Date: Thu Apr 28 2022 - 18:59:34 EST


On Wed, Apr 27, 2022 at 11:03:21AM +0200, Greg Kroah-Hartman wrote:
> In commit ca321ec74322 ("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: ca321ec74322 ("module.h: allow #define strings to work with MODULE_IMPORT_NS")
> Reported-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx>
> Cc: Jessica Yu <jeyu@xxxxxxxxxx>
> Cc: Matthias Maennich <maennich@xxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Thanks! Queued onto modules-testing. If no complaints come back I'll
move it to modules-next shortly after that.

Luis