Skip to content

Commit 929a343

Browse files
krzkhcahca
authored andcommitted
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 e93a169 ("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 <[email protected]> Fixes: e93a169 ("iommu: Enable compile testing for some of drivers") Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 535e4fc commit 929a343

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ config VFIO_AP
766766
def_tristate n
767767
prompt "VFIO support for AP devices"
768768
depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM
769+
depends on ZCRYPT
769770
help
770771
This driver grants access to Adjunct Processor (AP) devices
771772
via the VFIO mediated device interface.

0 commit comments

Comments
 (0)