Received: by 10.223.176.46 with SMTP id f43csp781371wra; Fri, 19 Jan 2018 01:42:14 -0800 (PST) X-Google-Smtp-Source: ACJfBoveWOAXESgXqlY9wPsKQe+CVE7EVQk+LOMjHTALO8i2PsE2p3bs3nKEmjYDnNgWSl1m1cRT X-Received: by 10.99.94.7 with SMTP id s7mr39895041pgb.132.1516354934344; Fri, 19 Jan 2018 01:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516354934; cv=none; d=google.com; s=arc-20160816; b=JPS+i1zrtq2PMoVBqgzZDuwVxTJGmJy4BvgWY8+tPePRVkrfCQLcBUJ165eT7dFsIN vSyqbx7XUyo3SkLTjmcab0Y4nMQzvIN9D3wuqQ0AopYoGgHH0o9a+QNRfQfSTfWeZo8C +WkhEDk4Q4Ekg5BQA++NiGZNmeiOt6tcLjKggch5hRU6x3aEeqeEEV+K2Hkz/aMDnX6+ xF4TR0GqL39jdUL33xPrhdy/UpT1saYumL8bEm5FDaSsev8YTtN8zY7aab7vCtsgjVmY 4NzjPm5UphffkPY+lyTZ/6lCUeDF7pjXk4P0DgM7nkoWYgwQiB8oaaKs1k1oLYi4tMZs 1aGw== 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:cc:to:from :arc-authentication-results; bh=Az8TdxSR7UaYYyw8PpTSgXpi9ClOUCcTaHVT7IuPjFU=; b=iGTrnDqqEctyCZl+81IvpPyCoE7rLIoIkExqr7SdtZwjrxxji7vj6aNTrMbv2+9ckb 29dHTvL1c3ZEV8DPJmf5+flomD/sg0zQYmjq9oEFokFwAjek0guKHEU8xHcKTa96QppQ 1Ns39khP8BkegUgSJAjQIG883F6+53nccn9Uz9HYi4KEZgpt5s0yw79u+RECxPTZl5tn uK87yl5o5tzW0yGkTMAYtrplFwobxQLGmi5SGU5B6ZV6A0Vx2E4wZC9gp78vFoT6JBAV DCU26K5rrO1+2XfJC5ARL6PuMzwyzvSCdZL26mVA3w2m70eWqfTwC/x9ElkFwTc0xemX OY0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si4477198pgo.780.2018.01.19.01.42.00; Fri, 19 Jan 2018 01:42:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755174AbeASJjk (ORCPT + 99 others); Fri, 19 Jan 2018 04:39:40 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:50638 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754771AbeASJjX (ORCPT ); Fri, 19 Jan 2018 04:39:23 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 036FB1849A; Fri, 19 Jan 2018 10:39:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id XFb0eLo4a5zz; Fri, 19 Jan 2018 10:39:18 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id DCF9F182B3; Fri, 19 Jan 2018 10:39:17 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 97C641A065; Fri, 19 Jan 2018 10:39:17 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8C9251A062; Fri, 19 Jan 2018 10:39:17 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Fri, 19 Jan 2018 10:39:17 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id 80B9D195C; Fri, 19 Jan 2018 10:39:17 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 7ABC4401C3; Fri, 19 Jan 2018 10:39:17 +0100 (CET) From: Niklas Cassel To: lorenzo.pieralisi@arm.com, Bjorn Helgaas Cc: arnd@arndb.de, kishon@ti.com, Niklas Cassel , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: Add dummy pci_irqd_intx_xlate() for CONFIG_PCI=n build Date: Fri, 19 Jan 2018 10:39:06 +0100 Message-Id: <20180119093906.27670-1-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_PCI=n and CONFIG_PCI_DRA7XX_EP=y, the build fails with: drivers/pci/dwc/pci-dra7xx.c:229:11: error: 'pci_irqd_intx_xlate' undeclared here (not in a function) When building drivers/pci/dwc/pci-dra7xx.c without CONFIG_PCI, gcc is usually smart enough to realize that RC specific code is unreachable and can thus be eliminated. However, gcc cannot do this if there is a function that isn't even declared. Hence fix the issue by introducing a dummy for pci_irqd_intx_xlate(). Acked-by: Arnd Bergmann Acked-by: Lorenzo Pieralisi Signed-off-by: Niklas Cassel --- include/linux/pci.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index 83299833a6ce..41c676a011f4 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1675,6 +1675,13 @@ static inline int pci_get_new_domain_nr(void) { return -ENOSYS; } #define dev_is_pf(d) (false) static inline bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags) { return false; } +static inline int pci_irqd_intx_xlate(struct irq_domain *d, + struct device_node *node, + const u32 *intspec, + unsigned int intsize, + unsigned long *out_hwirq, + unsigned int *out_type) +{ return -EINVAL; } #endif /* CONFIG_PCI */ /* Include architecture-dependent settings and functions */ -- 2.14.2