kbuild, drivers/perf: remove MODULE_LICENSE in non-modules
authorNick Alcock <nick.alcock@oracle.com>
Fri, 17 Feb 2023 14:10:43 +0000 (14:10 +0000)
committerWill Deacon <will@kernel.org>
Mon, 27 Mar 2023 14:08:17 +0000 (15:08 +0100)
commita64021d3726a096442d63a958ff0c49c12c3a1f4
treea40f865516317516d82bcd43fa523b963e1f3c50
parent8540504c5136146fd5c867afd86bb4618c1ee61a
kbuild, drivers/perf: 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: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230217141059.392471-9-nick.alcock@oracle.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/apple_m1_cpu_pmu.c