2016-04-15 19:53:32

by Fengguang Wu

[permalink] [raw]
Subject: [cryptodev:master 43/49] WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): Section mismatch in reference from the function init_module() to the function .exit.text:adf_exit_vf_wq()

tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
head: 5f575efea79caae69b81f922d99b221302a2c003
commit: d6064165ba4449ea085a389724d728258a3180ec [43/49] crypto: qat - adf_dev_stop should not be called in atomic context
config: i386-allmodconfig (attached as .config)
reproduce:
git checkout d6064165ba4449ea085a389724d728258a3180ec
# save the attached .config to linux build tree
make ARCH=i386

All warnings (new ones prefixed by >>):

>> WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): Section mismatch in reference from the function init_module() to the function .exit.text:adf_exit_vf_wq()
The function __init init_module() references
a function __exit adf_exit_vf_wq().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
adf_exit_vf_wq() so it may be used outside an exit section.

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation


Attachments:
(No filename) (1.12 kB)
.config.gz (53.16 kB)
Download all attachments

2016-04-15 20:44:48

by Tadeusz Struk

[permalink] [raw]
Subject: Re: [cryptodev:master 43/49] WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): Section mismatch in reference from the function init_module() to the function .exit.text:adf_exit_vf_wq()

On 04/15/2016 12:52 PM, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
> head: 5f575efea79caae69b81f922d99b221302a2c003
> commit: d6064165ba4449ea085a389724d728258a3180ec [43/49] crypto: qat - adf_dev_stop should not be called in atomic context
> config: i386-allmodconfig (attached as .config)
> reproduce:
> git checkout d6064165ba4449ea085a389724d728258a3180ec
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All warnings (new ones prefixed by >>):
>
>>> WARNING: drivers/crypto/qat/qat_common/intel_qat.o(.init.text+0x30d): Section mismatch in reference from the function init_module() to the function .exit.text:adf_exit_vf_wq()
> The function __init init_module() references
> a function __exit adf_exit_vf_wq().
> This is often seen when error handling in the init function
> uses functionality in the exit path.
> The fix is often to remove the __exit annotation of
> adf_exit_vf_wq() so it may be used outside an exit section.
>
Is it still complaining even after this?
https://patchwork.kernel.org/patch/8854461/

Thanks,
--
TS