Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4630174pxj; Wed, 12 May 2021 09:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNZKZ7LPkA+yfRUdz0Yy4dUsyYIjtSiDmgp2k6ESrVQKRt/lFJj/7Hbi4n08k4B0NIZPg+ X-Received: by 2002:a17:906:1701:: with SMTP id c1mr38758801eje.425.1620837388374; Wed, 12 May 2021 09:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837388; cv=none; d=google.com; s=arc-20160816; b=CqtTZXEYyZQ56u2Ns5xPsqRYLa4n1BPLGHLgQOsRX3RYT3cxrkj7bpc1990iOiha2W WyObI+k2iTSt59BqSivJRUJ255KIA2UlyJBiAPB9g2vQnPp1TmqcVB4kEtuTFDCngb6n mrmTEmDLa3bYElC59zSp/2UYoJRMFgRHOJ+R1xbRB6eGVdhI0/ZISdgffgO33kdnsVP9 zc0ajst9IO1QeED7PQr+NRd0ahx8egriFsmM8cAozp3J73sM4KutAaX6NKXPqQ8cjkL2 T6bT1XJB8APrub4DLqrI8WB7tetf8tiYFun8xIan+yQ+YtAyfgINKrUsmx96Qn1vF9Uq +WLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MKfGSxyrPY7T/935aPK6Aor46XTLblpKHXo4szYXMpc=; b=I3EYk79aCzlg7PXHRzuKBXPgVW+vL3ikfvDG3vym5pD4fONHA/rMfrAkMfRPiAdHRa 41eW+swXQYmSex52+Ex4lr5l7g/iyDyI1d0bNP05VUxNwOE+j68j18A0rIdHruujaqde JuHEMV97grZmpNohh9tH4qmBD/I774mNJuke/n2cB8kWCiDVGX8UEEoX2rXNacalMKCa LDUIadi+UvcYvvaiqPyOqV10ijH9o0J0WY/rJ3GbEhlfBaO8fRt63zRvMpskAF6at8qU i01lMvPS73IWnKcdz4cSvX3zFtqNfEslcnQVRPmGAulAIBhq3Fm6/G2vGdV3eHArD+iV n2Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PmvM0jJQ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga17si244607ejb.144.2021.05.12.09.36.04; Wed, 12 May 2021 09:36: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=@linuxfoundation.org header.s=korg header.b=PmvM0jJQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241735AbhELQ15 (ORCPT + 99 others); Wed, 12 May 2021 12:27:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:56846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbhELPiU (ORCPT ); Wed, 12 May 2021 11:38:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CE71061C61; Wed, 12 May 2021 15:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832812; bh=JO+A41yTJ+/AZUvx9aHXJL4BOXJYcGJS1SjkiYEyXuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PmvM0jJQWT/qAKaQqKigd2RO4LojCqCOkmSH8PfvVOgJcq8PsUA2bgBZGIl6KAx86 a8XwyzLdTZ97L1WplqX1EZCK+kpuQWE0E+Natd7YTNCvN4p2d4UhRQKDRzvxKo0T6s g86SfG3PF0aRw++W6bLbOexNOzNMO8hLHT/dLmLA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Michael Ellerman , Randy Dunlap , Sasha Levin Subject: [PATCH 5.10 406/530] powerpc: iommu: fix build when neither PCI or IBMVIO is set Date: Wed, 12 May 2021 16:48:36 +0200 Message-Id: <20210512144833.107877009@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit b27dadecdf9102838331b9a0b41ffc1cfe288154 ] When neither CONFIG_PCI nor CONFIG_IBMVIO is set/enabled, iommu.c has a build error. The fault injection code is not useful in that kernel config, so make the FAIL_IOMMU option depend on PCI || IBMVIO. Prevents this build error (warning escalated to error): ../arch/powerpc/kernel/iommu.c:178:30: error: 'fail_iommu_bus_notifier' defined but not used [-Werror=unused-variable] 178 | static struct notifier_block fail_iommu_bus_notifier = { Fixes: d6b9a81b2a45 ("powerpc: IOMMU fault injection") Reported-by: kernel test robot Suggested-by: Michael Ellerman Signed-off-by: Randy Dunlap Acked-by: Randy Dunlap # build-tested Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210404192623.10697-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- arch/powerpc/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug index b88900f4832f..52abca88b5b2 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -352,6 +352,7 @@ config PPC_EARLY_DEBUG_CPM_ADDR config FAIL_IOMMU bool "Fault-injection capability for IOMMU" depends on FAULT_INJECTION + depends on PCI || IBMVIO help Provide fault-injection capability for IOMMU. Each device can be selectively enabled via the fail_iommu property. -- 2.30.2