]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
s390/Kconfig: add missing ZCRYPT dependency to VFIO_AP
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 5 Aug 2020 15:50:53 +0000 (17:50 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 11 Aug 2020 16:16:39 +0000 (18:16 +0200)
commit929a343b858612100cb09443a8aaa20d4a4706d3
tree49bb7fdc2ef147636dd8e89bc17e8d670bb8c665
parent535e4fc623fab2e09a0653fc3a3e17f382ad0251
s390/Kconfig: add missing ZCRYPT dependency to VFIO_AP

The VFIO_AP uses ap_driver_register() (and deregister) functions
implemented in ap_bus.c (compiled into ap.o).  However the ap.o will be
built only if CONFIG_ZCRYPT is selected.

This was not visible before commit e93a1695d7fb ("iommu: Enable compile
testing for some of drivers") because the CONFIG_VFIO_AP depends on
CONFIG_S390_AP_IOMMU which depends on the missing CONFIG_ZCRYPT.  After
adding COMPILE_TEST, it is possible to select a configuration with
VFIO_AP and S390_AP_IOMMU but without the ZCRYPT.

Add proper dependency to the VFIO_AP to fix build errors:

ERROR: modpost: "ap_driver_register" [drivers/s390/crypto/vfio_ap.ko] undefined!
ERROR: modpost: "ap_driver_unregister" [drivers/s390/crypto/vfio_ap.ko] undefined!

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e93a1695d7fb ("iommu: Enable compile testing for some of drivers")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig