diff -r -u -b -B linux-2.6.18.orig/scripts/mod/modpost.c linux-2.6.18/scripts/mod/modpost.c --- linux-2.6.18.orig/scripts/mod/modpost.c 2006-07-13 09:25:00.000000000 -0500 +++ linux-2.6.18/scripts/mod/modpost.c 2006-07-13 09:26:18.000000000 -0500 @@ -1100,31 +1100,6 @@ buf->pos += len; } -static void check_for_gpl_usage(enum export exp, const char *m, const char *s) -{ - const char *e = is_vmlinux(m) ?"":".ko"; - - switch (exp) { - case export_gpl: - fatal("modpost: GPL-incompatible module %s%s " - "uses GPL-only symbol '%s'\n", m, e, s); - break; - case export_unused_gpl: - fatal("modpost: GPL-incompatible module %s%s " - "uses GPL-only symbol marked UNUSED '%s'\n", m, e, s); - break; - case export_gpl_future: - warn("modpost: GPL-incompatible module %s%s " - "uses future GPL-only symbol '%s'\n", m, e, s); - break; - case export_plain: - case export_unused: - case export_unknown: - /* ignore */ - break; - } -} - static void check_for_unused(enum export exp, const char* m, const char* s) { const char *e = is_vmlinux(m) ?"":".ko"; @@ -1155,8 +1130,6 @@ basename++; else basename = mod->name; - if (!mod->gpl_compatible) - check_for_gpl_usage(exp->export, basename, exp->name); check_for_unused(exp->export, basename, exp->name); } }