Skip to content

Commit 2fa3656

Browse files
author
Sam Ravnborg
committed
kbuild: soften MODULE_LICENSE check
Only modules that has other MODULE_* content shall have the MODULE_LICENSE() tag. This fixes allmodconfig build on my box. Signed-off-by: Sam Ravnborg <[email protected]>
1 parent 4a27214 commit 2fa3656

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/mod/modpost.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,10 +1552,10 @@ static void read_symbols(char *modname)
15521552
}
15531553

15541554
license = get_modinfo(info.modinfo, info.modinfo_len, "license");
1555-
if (!license && !is_vmlinux(modname))
1556-
fatal("modpost: missing MODULE_LICENSE() in %s\n"
1557-
"see include/linux/module.h for "
1558-
"more information\n", modname);
1555+
if (info.modinfo && !license && !is_vmlinux(modname))
1556+
warn("modpost: missing MODULE_LICENSE() in %s\n"
1557+
"see include/linux/module.h for "
1558+
"more information\n", modname);
15591559
while (license) {
15601560
if (license_is_gpl_compatible(license))
15611561
mod->gpl_compatible = 1;

0 commit comments

Comments
 (0)