modpost: make updating the symbol namespace explicit
authorMatthias Maennich <maennich@google.com>
Fri, 18 Oct 2019 09:31:41 +0000 (10:31 +0100)
committerJessica Yu <jeyu@kernel.org>
Fri, 18 Oct 2019 13:32:47 +0000 (15:32 +0200)
commit9ae5bd1847566e079ffb7607394389ac54815f2b
tree9a2498d3e40d52500e5701dc019862bf4e8a64e0
parenta2b11184389489dcca4fa899b290fc2751ea55ac
modpost: make updating the symbol namespace explicit

Setting the symbol namespace of a symbol within sym_add_exported feels
displaced and lead to issues in the current implementation of symbol
namespaces. This patch makes updating the namespace an explicit call to
decouple it from adding a symbol to the export list.

Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
scripts/mod/modpost.c