From 2a30bb9b7b8d001228ab9fa1474d87a0af288818 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 1 Dec 2020 19:34:17 +0900 Subject: [PATCH] UPSTREAM: modpost: change license incompatibility to error() from fatal() 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 Bug: 176428324 Change-Id: Ifaf5378d9305e6a5711cbe2d49b578c6ef184000 (cherry picked from commit d6d692fa21d3057edf457a764832077da8aa44d2) Signed-off-by: Melody Olvera --- scripts/mod/modpost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 7ef250bf1af2..ced1e9458b67 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -2142,11 +2142,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: