]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: turn static exports into error
authorQuentin Perret <qperret@google.com>
Tue, 1 Dec 2020 16:52:22 +0000 (16:52 +0000)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 21 Dec 2020 04:57:08 +0000 (13:57 +0900)
commit56f5b19586686581663b5bb680fb54ab48f6c47b
treef92d7e36434405ba16cec571ff500b3bdf0f03b9
parentb1caea17d06567f66db45f3fb4e7ab8bf1be34fa
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>
scripts/mod/modpost.c