Received: by 10.213.65.68 with SMTP id h4csp2127833imn; Sun, 8 Apr 2018 20:25:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx48IeUk2OPo7440/CPc9hMPE66GE2tKBffvKInosQvqjbWQ4qX0Md7WK9+R1EK1dc0sa2uOO X-Received: by 10.98.200.130 with SMTP id i2mr27437497pfk.221.1523244322258; Sun, 08 Apr 2018 20:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523244322; cv=none; d=google.com; s=arc-20160816; b=pAi//JV6ZX09dvLvMtp48YafY6JHDKIpDe8iR26JrRGr8r7tO16xeR7DGk+ejNMt95 jYRv8lUtwVUbMkc50P1Gb0OvL+WyZ2MlTT574Pns94xCjwVQF+kcr6cy5P1bSD+irTZr SYrqpV9Fi9Knd0kOxo6gN7FQylKgHdest/eFIdR8U6VN8yoi7evFB5P4B/CT9vC2k++J /A5BhiQK+8zZg9lN6PI3EP1sDrmo4ZNiyJAjBpZKJ45T+L4fJzB0L7q8clJ2NRDpQyg5 5EiLtbKU5un6J5wUqUzBO2Xx8yMA2l9FKwPju+TC7HLsCdOXjeN2CIIvxGDHkCdpt83j ykrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=7YEAe+S4oXWNy4OHhJzoi2K7GJBwouPpTo7Jjgs66mM=; b=Wg60gQNZm5XDyUE++lmoSETcEyLgoMDdOfAwBqoGKJkOwri88EvkDGBjRTPJPzYY/L wBLWiU7Ev4qG+VwWFOd+dLC90PD2t+k10H/FTf02wdfR5FgCdA9ewkzlSiUrw1Mk3s4K cLnBzklt502AJjoXP+VGv8/GVc1ue71iLRL1wCAG6O/95peXJWd71Qy9wPhH293+cHm4 DfB18dvXc/oqF0LW0uoOmKMDZw2HV8+mXZI3D04jbjPFfcAnWvrlBv5BmgvL2yiyHp0C ZZOkYIwMhVMch5p6MXEhYURuhwEjtiGrNrNchAluubT5Ih6Vh+MKMcQo2cf0CUCIjeW+ suZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=WI5+lHPM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg1-v6si1188736plb.695.2018.04.08.20.24.45; Sun, 08 Apr 2018 20:25:22 -0700 (PDT) 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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=WI5+lHPM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753334AbeDIDVv (ORCPT + 99 others); Sun, 8 Apr 2018 23:21:51 -0400 Received: from mail-sn1nam01on0134.outbound.protection.outlook.com ([104.47.32.134]:37792 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754760AbeDIAW4 (ORCPT ); Sun, 8 Apr 2018 20:22:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7YEAe+S4oXWNy4OHhJzoi2K7GJBwouPpTo7Jjgs66mM=; b=WI5+lHPMoRRDNW5LbAScILjhH5+45HfCKDn7/17PJ/0GhqQiyLNJ3m1RlQB4oz/SrK2C23pxfEKeuFkhdqzjx9Ae30AupT9bRcoghZ2dQwzdQwEHQBxibIy/OnQpzcGfA+qGAXF0Xa8sPTW3LXFHHpI+IyxRX5XQcDN4mYqb6Tw= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1014.namprd21.prod.outlook.com (52.132.133.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:22:53 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:22:53 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Niklas Cassel , Bjorn Helgaas , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 044/161] PCI: Add dummy pci_irqd_intx_xlate() for CONFIG_PCI=n build Thread-Topic: [PATCH AUTOSEL for 4.14 044/161] PCI: Add dummy pci_irqd_intx_xlate() for CONFIG_PCI=n build Thread-Index: AQHTz5iL8bLALvogkU2CTVeGQr+wOA== Date: Mon, 9 Apr 2018 00:20:21 +0000 Message-ID: <20180409001936.162706-44-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1014;7:t4KvWMzuuzp+HsNsFMfA2D/ZJ90vgdxHnE6PzeobplTXUeV+D02nfUa8Jqdii3H9A8s6BzWumJLvzKMYBu3C2ya1V7s+c8U+0gO+1+Fk6r7ZCNsBhwNZqxBUPFiNtHhTq4WdjrB18YzssFGegEwD7Gzqylc513rJRN4sYjaC0+aZ9VUG8kB/9fUq4fQgXn+BMOCVjfECpi4mgitGtzQVj21i74RYwoafIamV84C5vCxYPCI18ELgNAaZo26ImCgq;20:gG+3ugy5bhf15bDUJ6HSz+JUHbjJNco7fw8MNgTPjkoOEQIz55ZmIejsTPhi7dnFjNJdXyCyJ1oU4n8dqM54LFiwYIuSzUi0CzNlEhzvy7oVZfwZRuse/hrqdI8UoXqOVbg+al+ZyYg3j8qFrBL/3+mPC2Qoi4C0hUWRPfJkbOU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: f3cd3059-7b65-4439-d8d5-08d59db008e3 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1014; x-ms-traffictypediagnostic: DM5PR2101MB1014: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(180628864354917)(89211679590171)(211936372134217)(153496737603132); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1014;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1014; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(39860400002)(39380400002)(396003)(376002)(189003)(199004)(54534003)(81166006)(81156014)(478600001)(6436002)(72206003)(8936002)(10290500003)(106356001)(99286004)(86362001)(2616005)(7736002)(2501003)(6666003)(446003)(476003)(8676002)(11346002)(105586002)(305945005)(5250100002)(6512007)(53936002)(68736007)(107886003)(66066001)(86612001)(2906002)(14454004)(186003)(22452003)(25786009)(4326008)(2900100001)(486006)(36756003)(6486002)(3660700001)(54906003)(26005)(3280700002)(110136005)(1076002)(10090500001)(76176011)(6506007)(97736004)(316002)(3846002)(6116002)(102836004)(5660300001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1014;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: nMTO8D8Fuo6489kb9IR1nTKx+CME0oQtPhafKAUNmsv5K5GgRNtMlgshSVfytqQWDWO89eyg1boQpKSQrtZY08MOy8VVaiz6vU9gOvgc2pw2Rv7ug6ByZY7R5+PtqcHmNnrumrDiteW4lDHMBRw3GHDOO5cfmEKhQR955XtQiccqHZ5a9r3WCY71hAnhIEc0qfoo4iABayX+oAxlG6WoLunCa47b9m2EO2/mY9MWtyIpSLEgPvys6teRjo3e2VyGTVXH820MG2qJZBNO/k3s09+MCJyD/oTVRK7JOoN0RL1PueGucRn7cIBMck3ehzfR0M7NhKflHGm6hIxKqCjTpMc7cG3wDAICDzAm84hkXu1Gyy2rpRq4P6/NOnVBcQqiiPE5D9MkUCr+h6fj+qvoYgzMXqmw1dCrombGDTC3gl0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3cd3059-7b65-4439-d8d5-08d59db008e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:21.0195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1014 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Cassel [ Upstream commit 80db6f08b7af93eddc9487535e6150b220262637 ] Some hardware can operate in either "host" or "endpoint" mode, which means there can be both a host bridge driver and an endpoint driver for the same device. Those drivers share a lot of code, so sometimes they live in the same source file. The host bridge driver requires CONFIG_PCI=3Dy because it enumerates PCI devices below the bridge using the PCI core. The endpoint driver does not require CONFIG_PCI=3Dy because it runs in an embedded kernel on the other side of the device, e.g., on an adapter card. pci-dra7xx.c contains both host and endpoint drivers. If we select only the endpoint driver (CONFIG_PCI=3Dn and CONFIG_PCI_DRA7XX_EP=3Dy), the unne= eded host driver is still compiled. It references pci_irqd_intx_xlate(), which is not present when CONFIG_PCI=3Dn, which causes this error: drivers/pci/dwc/pci-dra7xx.c:229:11: error: 'pci_irqd_intx_xlate' undecla= red here (not in a function) Add a dummy pci_irqd_intx_xlate() for the CONFIG_PCI=3Dn case. [bhelgaas: changelog] Signed-off-by: Niklas Cassel Signed-off-by: Bjorn Helgaas Acked-by: Arnd Bergmann Acked-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- include/linux/pci.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index d16a7c037ec0..727e309baa5e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1688,6 +1688,13 @@ static inline int pci_get_new_domain_nr(void) { retu= rn -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 */ =20 /* Include architecture-dependent settings and functions */ --=20 2.15.1