Received: by 10.213.65.68 with SMTP id h4csp2157502imn; Sun, 8 Apr 2018 21:11:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx48jUyS51SPbK3+Tdnc/RMuzj303KNj2KJv7QNz/9M8VG2zxPAKBhCxJb/OkvOPAnWewq3FM X-Received: by 2002:a17:902:b786:: with SMTP id e6-v6mr2410001pls.246.1523247119798; Sun, 08 Apr 2018 21:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523247119; cv=none; d=google.com; s=arc-20160816; b=DaMoVgWyOGFM5EnY13jUeFmBmL3WQbX5uOROLLoiVI06lzu0wqUXPXXTtjYwZL+wYa ddRnl2RhTArw/EQiT34PruQs7PhTr5n4ulmLidJsSzT4Fcke2ZWLX+MuzGPtP9PO3UKk Gs96d/e7Pn0Ul+uoOIdkJJJ5khsi5niGAUpTqDR00sC4Ohp1Xga6hL9qJvXc4frznaNR YRNngUzYDGkRBhzP2PgZ3utiTH0QSf8+r4iIFO4GrUSiHeSOwCumT/Fi4dY1a3QQdb9P FllzziJkcWvecmkwA9dGqikATg+8Zi4EI4rgIVnpiIH7QTx4mtXP48IlAEB+LhbotyLe mEZQ== 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=R4MdejiZNHSL1FbodDQpE2Vh8PFudmvBD9mOCW9nOxI=; b=tjSImBvn0GsmHMmTdA9pS3ajNRNORz389/nk6BvFfXnKPB8f6b4F6FkFoLi+SxjM/A N02wwJNyd0GpV6bPFMOBYNqTPbJs35xW6c906C9g8bLWvwaJE1r6SZo3Qnb/2RMZptQX OqBnbj1yPSiVigpCP1qx7a7Pzf9uKAMKeCRcUUbju6O4AAExXmgnDUZBs83p6IL0X3/Q NffZbIDOavaxo3LgWkR4sCgb9DW090a9/Gxyt/bma7lh5LQFmvbVb2U2RRsR1O7vhaZN LLM7t1c2emQe6AC1ZQfxyQJPTudfNI+JWSfeFcpAabd9XgKmKrJF5WAjkRg9GVtx5YU1 GJUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=gKWE9RMc; 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 l8-v6si13978645pln.484.2018.04.08.21.11.22; Sun, 08 Apr 2018 21:11:59 -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=gKWE9RMc; 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 S1752807AbeDIEDU (ORCPT + 99 others); Mon, 9 Apr 2018 00:03:20 -0400 Received: from mail-bl2nam02on0136.outbound.protection.outlook.com ([104.47.38.136]:51875 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753239AbeDIAR6 (ORCPT ); Sun, 8 Apr 2018 20:17:58 -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=R4MdejiZNHSL1FbodDQpE2Vh8PFudmvBD9mOCW9nOxI=; b=gKWE9RMc03NXHCo61kSBTpeMKPgZJS1cwwL3FeJVAzn/WWO0XdwEQIuzCcKJ/0SpVKNsICpJiDUUM3Z+N19lpCl0BxczDZL4ozjJXNmJ0Ii0iVgfy9k2TdHWu2yQKTgL0IXIjV7C11RrJG7Rz0c8AWWjQ+B2r/ro3Z7GFAflRC0= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1048.namprd21.prod.outlook.com (52.132.128.17) 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:17:52 +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:17:52 +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.15 050/189] PCI: Add dummy pci_irqd_intx_xlate() for CONFIG_PCI=n build Thread-Topic: [PATCH AUTOSEL for 4.15 050/189] PCI: Add dummy pci_irqd_intx_xlate() for CONFIG_PCI=n build Thread-Index: AQHTz5gjWLeRjxDN3UqqqcrGMFGoMw== Date: Mon, 9 Apr 2018 00:17:25 +0000 Message-ID: <20180409001637.162453-50-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB1048;7:WFguYYt2dvVAh7e6lJbdLJIPeyQTSm9hH0xhLkzftp6pFgh0W95SaAbcX2/nFmV/+8n5dlr+9zm0aHLvZ3W69pVstU3U3nfIEMALoe4DA+CPrUaobvuKspN65QpkhAcgN3Jdo5dQFetDH1NMeNujxQaFlKGzsZ7o918cJ4irk532P6WPMpirQOjvFj6+DOMwSPn6/v7uzmBZEF3LQ2sTOgnvKRijeKUAndPwv9sZN1W6hIHoi0lhwSWtrupCAT8b;20:dSBdeamUVS2a4+li5uB/8hCEmcdBK99Rj5pw1p2j5fnWUDXzG8yYG1nB6PXRA9k0cysgNNxAEbGyJd1jZaJ/Uq0H3eBsAvXh3nJXjmey+mOl48zo4aQvvGNYofkCvTQHRZTRfvytwl/GyhICPylM1L8hM/ZKheM4+CymUk+v27M= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 2cdca266-e026-4955-1088-08d59daf5572 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1048; x-ms-traffictypediagnostic: DM5PR2101MB1048: 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)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB1048;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1048; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(376002)(39860400002)(346002)(396003)(189003)(199004)(54534003)(86362001)(1076002)(99286004)(6116002)(110136005)(3846002)(54906003)(22452003)(3280700002)(105586002)(2906002)(76176011)(4326008)(6512007)(6436002)(6486002)(3660700001)(6666003)(7736002)(86612001)(25786009)(2900100001)(14454004)(97736004)(53936002)(107886003)(68736007)(102836004)(36756003)(6506007)(26005)(186003)(106356001)(305945005)(5250100002)(72206003)(478600001)(2501003)(10290500003)(81166006)(5660300001)(8676002)(66066001)(316002)(81156014)(2616005)(10090500001)(11346002)(446003)(476003)(8936002)(486006)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1048;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: V2XGh4lQiiEQRdhrmZ14AAQKVk3OFJr34uGCSUngWe3bT14ei36AQ7uKC+KqCcmDaI41FcNScHoqZGxOSZB/UbxkKM9ep+QFLUS9vWaVGzkYicTZ25HJMpDsT/dnp6ghSAfjqot0W9LBvnOMqInb1qFPiSvFWagtz8tQa2/QHJn+SZGqB8mIoi+OzxU40XZr+iee9YM3zo8cUC/bKPR7rrLoUCI7XM4h4jeSvCUO8EKuaT95JdwiXlVKLwry4RxxNSTyiWMLqVqzLEAEv5N55C0abhAsze0JB29Fhux0SBCAGwoPbIDJO40TF81W7YuhEK41yFWbD6GWQOBEa6TdavX08YHnwv27ds7yLzoKTFogtsS+XWITGJfg05wRsf/6n9a9Q14KpBDRdJ+XiwAvW6Z1554rI2RPyouuayr5Flk= 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: 2cdca266-e026-4955-1088-08d59daf5572 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:25.6661 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1048 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 c170c9250c8b..f69944699317 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1686,6 +1686,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