Commit d137ab48 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Only Print Taint Message Once

From: Rusty Russell <rusty@rustcorp.com.au>

Only print the tainted message the first time.  Its purpose is to warn
users that we can't support them, not to fill their logs.
parent 5dfd0a43
......@@ -1131,7 +1131,7 @@ static void set_license(struct module *mod, const char *license)
license = "unspecified";
mod->license_gplok = license_is_gpl_compatible(license);
if (!mod->license_gplok) {
if (!mod->license_gplok && !(tainted & TAINT_PROPRIETARY_MODULE)) {
printk(KERN_WARNING "%s: module license '%s' taints kernel.\n",
mod->name, license);
tainted |= TAINT_PROPRIETARY_MODULE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment