Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp802724pxa; Wed, 5 Aug 2020 13:09:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZjQB+p9HpwRMogR/USYavQ+V4jLSJ4KAQATOlcH9lkuZ12MnOPsFh5VqDvg0/eKQPj2NI X-Received: by 2002:a17:906:c08a:: with SMTP id f10mr966284ejz.181.1596658168210; Wed, 05 Aug 2020 13:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596658168; cv=none; d=google.com; s=arc-20160816; b=q3TPgUaSAZPiUCRy71JVHaw+H8nMR2GdPGlreusrHrIOEY5cf/5NzVcaEBnLH0zTvU Vk6PoS9Ie4HNiHGXCuv56CLVzWICyhP7LkLvF8bpGFa1Dna5S9T9o0ewE5lV3aafEN7X 2fIa0rY2ntxTagb+o3R5MNzjUb6FXTFbGK/jECtT8CscE2s90T92bsyGXoTdOUroCImF KrKte5h1TXyzuZRDIU3g23OrJJckFQO81jRSV9B70oAkNYemgdydYANWFJEP1hPu3XMt gOsmXgrWMM2z/48O2E98hvJUNqR3UuneLd2QRPVa11s9jvSzMbdWzRGNk8AksjVmQWvH I+iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=HW1W+kYSJFUMwFfvDo1BasusxLt7PISpF9irDfImWAo=; b=Tsfy9oc0DpnEkXYMskE2N+D/Vt2RmUNYr0b3HJrNpzJuKg5IdaeMpSzjXMHXw/eRR3 q4B3V6njXizP6L+Ccz8IdRdHWLUl07buPFVchNPOvSvl2kex8Z5K3vBl1MsAOh9tZgx4 TfeSnTGb/lNXXQH11xDBt7RWwFTtee0TquRo3nwd/lEkSVjbPgI2+FH/eyvY+rHLgkbR wD1hbEqyexxs0+czaOL8uN8KjofC8UYLKi/FcFn7wvjR5J0kScii7z3b/McvaW+xkTwm BTb1akA8nT/ZN7kQ1yyCzCnydjwIHvyJr5Vlc69np8b0ZusAHzfex7yeqTBBDSD0R7C/ 93lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FuyXtPOo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm20si1637160edb.583.2020.08.05.13.09.05; Wed, 05 Aug 2020 13:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FuyXtPOo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729235AbgHEUIn (ORCPT + 99 others); Wed, 5 Aug 2020 16:08:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:49780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbgHEQce (ORCPT ); Wed, 5 Aug 2020 12:32:34 -0400 Received: from localhost.localdomain (unknown [194.230.155.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FE192245C; Wed, 5 Aug 2020 15:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596642663; bh=jWj0WeLI2bTZqXoSzm4YiO4duySDXE/ANme0mZDkCFY=; h=From:To:Subject:Date:From; b=FuyXtPOokL9dq42pPtPfpND3C18XqEmSHiQOVmG3R63oIyrvLDa7yESzWRa/Z071N Fa89RISm272D1o+zizen/LZR8qqA7JH4v4Zu+6b4Y1mwWCEJK23UM/KRQV7/lbifxO /f7VoKAnW8uqTMY3eC33gWgTx9Mgo8r8mPcpuqfY= From: Krzysztof Kozlowski To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Joerg Roedel , Krzysztof Kozlowski , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] s390/Kconfig: add missing ZCRYPT dependency to VFIO_AP Date: Wed, 5 Aug 2020 17:50:53 +0200 Message-Id: <20200805155053.3739-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Fixes: e93a1695d7fb ("iommu: Enable compile testing for some of drivers") Signed-off-by: Krzysztof Kozlowski --- arch/s390/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 8c0b52940165..2a31a5e74e42 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -766,6 +766,7 @@ config VFIO_AP def_tristate n prompt "VFIO support for AP devices" depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM + depends on ZCRYPT help This driver grants access to Adjunct Processor (AP) devices via the VFIO mediated device interface. -- 2.17.1