video: fbdev: remove MODULE_LICENSE in non-modules
authorNick Alcock <nick.alcock@oracle.com>
Tue, 7 Mar 2023 18:01:22 +0000 (18:01 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 20:13:51 +0000 (13:13 -0700)
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: Helge Deller <deller@gmx.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/video/fbdev/wm8505fb.c
drivers/video/fbdev/wmt_ge_rops.c

index 8f4d674fa0d03892ea22bf3ecb8bd8f355890b03..2a2997c647f79d9a546455d18eb2d4a24f92429e 100644 (file)
@@ -407,5 +407,4 @@ module_platform_driver(wm8505fb_driver);
 
 MODULE_AUTHOR("Ed Spiridonov <edo.rus@gmail.com>");
 MODULE_DESCRIPTION("Framebuffer driver for WMT WM8505");
-MODULE_LICENSE("GPL v2");
 MODULE_DEVICE_TABLE(of, wmt_dt_ids);
index 42255d27a1dbbe86b75ec2d4bc95a9aacc20bc85..c207fd917dcef66919d920ca18f30d878dbc9569 100644 (file)
@@ -170,5 +170,4 @@ module_platform_driver(wmt_ge_rops_driver);
 MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>");
 MODULE_DESCRIPTION("Accelerators for raster operations using "
                   "WonderMedia Graphics Engine");
-MODULE_LICENSE("GPL v2");
 MODULE_DEVICE_TABLE(of, wmt_dt_ids);