Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp456181pxj; Thu, 20 May 2021 13:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhUVRZY/shZlIoRLacqOtimEQeo8a8HRSvguwuCcjYJBD1U13JC6bEZFTwcSUpfDggGOIh X-Received: by 2002:a92:3f08:: with SMTP id m8mr7145301ila.154.1621542149488; Thu, 20 May 2021 13:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621542149; cv=none; d=google.com; s=arc-20160816; b=fiLuusTHnpg5n4vE2a3TmCtKWv1VYkPNrhvlmTb89bay5TzdEyucxfOd5UN9wS5xXE KemkVMA8BHj6beTvYCbU+qaO7OSkTjRYfxZbpfBZC1trECxIGuDlCyQyj0Xv4/gF0q5w 2PpJxyOrEc5Fhdgzut4kQs2Mp07ZA/zoCK2+PKa0jJ36+Y+emX5BHUwroRTwhFdqqGfY rLU/Oj0Rhwqf657tP1M+Mh9gNJrOcsEtvcNFbr2NEMe5mN6G8s8ugm22gPZX1s1wjdGv SELZu+RRVO0kz73zD7xCjYIvYkOyW7Aexzf9pIk34vXkkimRA6aGlYDpE3oU6Zvahgnc 099g== 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=l78rdg85zcFBioPslgEFkNXRMbDGqgWj2NSCMDWO/Nc=; b=AGhG84tVA847leInl4CYJArvkFSpomaoIZRcIZK/XduDN2eYfh2wwDsXLzJJ4Z041P LpnGGd704pkA21YEO0snGlT19e3Rv4i5NDp7OYukre7fayPhuLt9mYYpgxXv4kp7Ju3c r0AI3rjII73vjPeAlONYtn2w+W6v0C5fuWNIBMQhRR1Ro2Kv9HzFhs0vKerzOhtqXuYm C+fIwSAILSS7b7xVDeG6JYfANo6kIroOizx4r7/dR9P3/HgT94w9/ZtXhVOhaJFue7WM 7vbTYcPzesMTzMz7cqOs9VAFyxgaBQV1nJzpCpRpb3v5uZte9ZWH1uXV7A7R5RzagFAL OcVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YEssUkb8; 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 c15si3290534ilo.151.2021.05.20.13.22.16; Thu, 20 May 2021 13:22:29 -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=YEssUkb8; 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 S237353AbhETKu7 (ORCPT + 99 others); Thu, 20 May 2021 06:50:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:39816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237805AbhETKfg (ORCPT ); Thu, 20 May 2021 06:35:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6853861400; Thu, 20 May 2021 09:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504426; bh=t2SDdH4ejF2+umXZYksPCXnl5nME/ht8BNAB3lEBcgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YEssUkb8g/HW7ev70AAQ+Ufwv1BNTqHyGB5Ka9a/6nNz0hWTcWo631rFLtccAHhTG YiA4NGrHkQLm9/C2Br3arkoHBPkuuT1FduWso8DmHuF0+KxASd2a3jJ5yC1jMiVQ48 /u75o2i8yYC7NuDeXdkOR4JjEn9MAElgruXJbVlg= 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.14 206/323] powerpc: iommu: fix build when neither PCI or IBMVIO is set Date: Thu, 20 May 2021 11:21:38 +0200 Message-Id: <20210520092127.185508204@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 be1c8c5beb61..762bb08b0f59 100644 --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -349,6 +349,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