pinctrl: renesas: remove MODULE_LICENSE in non-modules
authorNick Alcock <nick.alcock@oracle.com>
Tue, 7 Mar 2023 18:01:51 +0000 (18:01 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 20:13:53 +0000 (13:13 -0700)
commitb08401919cc1359095e9c03c52470f4b0e1097de
treeb56a097066a5071cd68a57ec992a1548a510457e
parent7da1628cf38f54f0d1044096f31b73f8c046aa8f
pinctrl: renesas: remove MODULE_LICENSE in non-modules

Since commit 8b41fc4454e ("kbuild: create modules.builtin without
Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations
are used to identify modules. As a consequence, uses of the macro
in non-modules will cause modprobe to misidentify their containing
object file as a module when it is not (false positives), and modprobe
might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as
modules.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Suggested-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: linux-modules@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Hitomi Hasegawa <hasegawa-hitomi@fujitsu.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-renesas-soc@vger.kernel.org
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/pinctrl/renesas/pinctrl-rza1.c
drivers/pinctrl/renesas/pinctrl-rza2.c
drivers/pinctrl/renesas/pinctrl-rzg2l.c
drivers/pinctrl/renesas/pinctrl-rzn1.c
drivers/pinctrl/renesas/pinctrl-rzv2m.c