Skip to content

Commit d25d01b

Browse files
nickalcockrafaeljw
authored andcommitted
powercap: remove MODULE_LICENSE in non-modules
Since commit 8b41fc4 ("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 <[email protected]> Suggested-by: Luis Chamberlain <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent eb52bc2 commit d25d01b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/powercap/powercap_sys.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,4 +679,3 @@ fs_initcall(powercap_init);
679679

680680
MODULE_DESCRIPTION("PowerCap sysfs Driver");
681681
MODULE_AUTHOR("Srinivas Pandruvada <[email protected]>");
682-
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)