]> git.baikalelectronics.ru Git - kernel.git/commitdiff
modpost: change license incompatibility to error() from fatal()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 1 Dec 2020 10:34:17 +0000 (19:34 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 21 Dec 2020 04:57:08 +0000 (13:57 +0900)
Change fatal() to error() to continue running to report more possible
issues.

There is no difference in the fact that modpost will fail anyway.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c

index d55d7e5ef1110c44d0e39f96dffca52cc0419162..d907c63b948f35b522f76c3d299b4607370ad64b 100644 (file)
@@ -2145,11 +2145,11 @@ static void check_for_gpl_usage(enum export exp, const char *m, const char *s)
 {
        switch (exp) {
        case export_gpl:
-               fatal("GPL-incompatible module %s.ko uses GPL-only symbol '%s'\n",
+               error("GPL-incompatible module %s.ko uses GPL-only symbol '%s'\n",
                      m, s);
                break;
        case export_unused_gpl:
-               fatal("GPL-incompatible module %s.ko uses GPL-only symbol marked UNUSED '%s'\n",
+               error("GPL-incompatible module %s.ko uses GPL-only symbol marked UNUSED '%s'\n",
                      m, s);
                break;
        case export_gpl_future: