Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp66265pxj; Thu, 20 May 2021 04:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl+bjK4bM/B6QX/9PfaGX/PIDSCqmtbhao4Y4xxq+rBgbqF0VszgxelJ2huHi3vEP3eee+ X-Received: by 2002:a05:6402:da:: with SMTP id i26mr4574566edu.379.1621510988329; Thu, 20 May 2021 04:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621510988; cv=none; d=google.com; s=arc-20160816; b=lasculKALvAQoye/nxQpMZG+jkJRBvaY8bhe4zVuNY0X3ecaV9B9BRYr3U91acdsQC k7VNGaKAmswPdMJtVhlSipy401UGDJhfwlDTA+R8Tvs6znTs18Zg05UwuJ65Fo57CC42 PfC4nlCSkbwstXWj7pDHHm1UVomYlYcJI9nmyG7Cfw0cF9ynlldGaLNx/qfQ3fT7ozbr PTP+dxUe1cljzDjDGT5b8aZ7cn8UPd34YPTCLRkl5SZnHy0a4k8rQRbmAyh2PQT32B3v qH8E66xrUDH/vs1Zj7jDLO2+5hpZNkCDPIAWvmT8WamGZv6pppSVQAGwnzAverlR2Xj1 4hfw== 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=s0BHNRuXxrNynKJMioPgid4gcAmmNOkJIN+/05W2rIc=; b=IyQR7mGCsDCy3p2eoWzOc0tM5231cZB5hlh8wzkmiXkZva4ilvMo53SSF9QBh8uwpG 8rDbtnw8HqrrkksP5BYdVH1+NxKuEyvPIKBpXsaBPZT8S0OMLgffzGprE92TRYDwaeG1 KKqlVA5n/X6AjbRcHuy5bcCTvtDe15Ay0oxM4tUnKpowt9BarXLtb1aRlSq+0f85uE8f hP0xWJYIpHKpMvYMlRFrg51wFOwRDHea/Fj6sAdNT1E39tK6XDYsd2Ws1o8hiCLPUrjW pNTMZogwwvCpyyDmkJyGFIuzPp0ROctsDAdM2Mpbd+NUmxf7MQN0jvTXz9Pe2wvofqB/ 5gXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aIi55Rno; 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 g8si2151327edb.70.2021.05.20.04.42.45; Thu, 20 May 2021 04:43:08 -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=aIi55Rno; 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 S242827AbhETLl6 (ORCPT + 99 others); Thu, 20 May 2021 07:41:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:43846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239958AbhETLU7 (ORCPT ); Thu, 20 May 2021 07:20:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8D1261D88; Thu, 20 May 2021 10:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505474; bh=VudqAjCm7cNo/92nDgScdUdyls3M86uh7MZYVapLyto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aIi55RnoA07i0y4Mx7jh8Thc/88Z9To95XHRW4FHClR+4akurbdvoZB8tDuoWAPOg jSkAeb3iLsye+ATXXwR3/vf2RSAGfOPZ8m1mydpWeDD6IV03L9ceT+oy/ypOPIU+C5 MxusS+6uaWU+Wc3fIN8lPQO5OEAKKKvv+f9y3Xb8= 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 4.4 117/190] powerpc: iommu: fix build when neither PCI or IBMVIO is set Date: Thu, 20 May 2021 11:23:01 +0200 Message-Id: <20210520092106.076711154@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 3a510f4a6b68..7e62572215ce 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -350,6 +350,7 @@ config STRICT_DEVMEM 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