Commit b9ed847b authored by Quentin Perret's avatar Quentin Perret Committed by Masahiro Yamada
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarMatthias Maennich <maennich@google.com>
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent c7299d98
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2648,7 +2648,7 @@ 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",
				error("\"%s\" [%s] is a static %s\n",
				      s->name, s->module->name,
				      export_str(s->export));
		}