module: show disallowed symbol name for inherit_taint()
authorLecopzer Chen <lecopzer.chen@mediatek.com>
Wed, 27 Apr 2022 07:36:06 +0000 (15:36 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 12 May 2022 17:29:41 +0000 (10:29 -0700)
commit8eac910a49347821cbafc770a319e00ccd69d58b
treee5883dedff58a9090c223ef36ea232f39466e74f
parent391e982bfa632b8315235d8be9c0a81374c6a19c
module: show disallowed symbol name for inherit_taint()

The error log for inherit_taint() doesn't really help to find the
symbol which violates GPL rules.

For example,
if a module has 300 symbol and includes 50 disallowed symbols,
the log only shows the content below and we have no idea what symbol is.
    AAA: module using GPL-only symbols uses symbols from proprietary module BBB.

It's hard for user who doesn't really know how the symbol was parsing.

This patch add symbol name to tell the offending symbols explicitly.
    AAA: module using GPL-only symbols uses symbols SSS from proprietary module BBB.

Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/main.c