From: Nick Alcock Date: Tue, 7 Mar 2023 18:01:34 +0000 (+0000) Subject: dma-mapping: benchmark: remove MODULE_LICENSE in non-modules X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=114da4b026d39e36f6017b7ea534ffe5099f90be;p=linux.git dma-mapping: benchmark: 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 Suggested-by: Luis Chamberlain Cc: Luis Chamberlain Cc: linux-modules@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Hitomi Hasegawa Cc: Christoph Hellwig Cc: Marek Szyprowski Cc: iommu@lists.linux.dev Signed-off-by: Luis Chamberlain --- diff --git a/kernel/dma/map_benchmark.c b/kernel/dma/map_benchmark.c index 0520a8f4fb1df..02205ab53b7e9 100644 --- a/kernel/dma/map_benchmark.c +++ b/kernel/dma/map_benchmark.c @@ -356,4 +356,3 @@ module_exit(map_benchmark_cleanup); MODULE_AUTHOR("Barry Song "); MODULE_DESCRIPTION("dma_map benchmark driver"); -MODULE_LICENSE("GPL");