summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Perret <qperret@google.com>2020-12-01 17:52:22 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2020-12-21 05:57:08 +0100
commitb9ed847b5ae69e0f2e685f9d53e2dd94c0db751e (patch)
treef92d7e36434405ba16cec571ff500b3bdf0f03b9
parentmodpost: turn section mismatches to error from fatal() (diff)
downloadlinux-b9ed847b5ae69e0f2e685f9d53e2dd94c0db751e.tar.xz
linux-b9ed847b5ae69e0f2e685f9d53e2dd94c0db751e.zip
modpost: turn static exports into error
Using EXPORT_SYMBOL*() on static functions is fundamentally wrong. Modpost currently reports that as a warning, but clearly this is not a pattern we should allow, and all in-tree occurences should have been fixed by now. So, promote the warn() message to error() to make sure this never happens again. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Matthias Maennich <maennich@google.com> Signed-off-by: Quentin Perret <qperret@google.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
-rw-r--r--scripts/mod/modpost.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index a750596d5cc2..d6c81657d695 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -2648,9 +2648,9 @@ int main(int argc, char **argv)
for (s = symbolhash[n]; s; s = s->next) {
if (s->is_static)
- warn("\"%s\" [%s] is a static %s\n",
- s->name, s->module->name,
- export_str(s->export));
+ error("\"%s\" [%s] is a static %s\n",
+ s->name, s->module->name,
+ export_str(s->export));
}
}