Received: by 10.223.176.5 with SMTP id f5csp2474249wra; Thu, 1 Feb 2018 00:58:20 -0800 (PST) X-Google-Smtp-Source: AH8x226tqXXAGvXz7sVoFUfmTbowQgSEMwpLtBkjf2Slo/v0lkokysjHCrNXIWCpbS1O5vtqYlsH X-Received: by 2002:a17:902:49:: with SMTP id 67-v6mr30646301pla.424.1517475500764; Thu, 01 Feb 2018 00:58:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517475500; cv=none; d=google.com; s=arc-20160816; b=REaNkc2o5XYOC+tYa1zyKYw33IFjEVpEO9X5GdkjAv7CXVI9DcOjJkUnMGf6AsyzNR KS1TpFFQs4fHcs6g8mVvLP2e3WY3dzbnSeKKQ8SiVmFrrDkOeXJkalJklqJ2RPG89fgA bGk9pPHExq0UIT6N5AvR2dABO4/VGmjxhudFWWufdh61YI8NV5qcMetpmcBciY0Gr97t jG71h74y7qJu8A8pwqsQnrztoUHAyT07wb5Vv64aQv2WTPlqW2hmW4Ak+1DPO7/8fxQz EysMd0ZUkixJU/2aLYhp0zO8oP2V7snxLeWB3psYvZjRVYeRvxntRPcJKQyipTplPl6f A56w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=F61RXO8db5WCFE7+fNVDjO7fr6/YyWvD0QeFtcKuzOg=; b=poAlrseTecItl8+iF3UMC9IpwFCHT8w/QbTbbQS5fK6/njyyTJYpMnwk7qAwAhAPv7 xyPNQYG3icjCAAY/FT5LooQws1HAgA4JDvOT/Hk0zEYu4Mxisn2692F8/JJMUa3pfypA Jd9zTL06iPPyARzvgOTM3VzQnsg1wPB9i7dwxzornQ14jC2Dxvgs1vAtU/PATcEZCXQ0 78GyDXmvV7nHN3Xl/3RO5IUvHI0JmFE0Mzojyo+mAA7xd7PFQ2264DqIPdtaQYfV3xLd 42zwLYc56NbXVnQk1YoXCmZ/4DuBPGS19nKsRpeeVu0akVTDHh2kbmiBQzI3XS1EJi03 GxFQ== 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 z66si4101969pfj.156.2018.02.01.00.58.06; Thu, 01 Feb 2018 00:58:20 -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 S1751766AbeBAI4O (ORCPT + 99 others); Thu, 1 Feb 2018 03:56:14 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:35903 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbeBAI4M (ORCPT ); Thu, 1 Feb 2018 03:56:12 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 33216182CF; Thu, 1 Feb 2018 09:56:11 +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 uUAV2qN0l2Yk; Thu, 1 Feb 2018 09:56:10 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 6345B187A8; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 428231E07D; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F9CF1E078; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 22A812598; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 19ABC401AF; Thu, 1 Feb 2018 09:56:09 +0100 (CET) Date: Thu, 1 Feb 2018 09:56:09 +0100 From: Niklas Cassel To: Stephen Rothwell Cc: Bjorn Helgaas , Linux-Next Mailing List , Linux Kernel Mailing List , Lorenzo Pieralisi , Cyrille Pitchen Subject: Re: linux-next: build failure after merge of the pci tree Message-ID: <20180201085608.GA22568@axis.com> References: <20180201105114.562aef46@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20180201105114.562aef46@canb.auug.org.au> User-Agent: Mutt/1.9.1+16 (8a41d1c2f267) (2017-09-22) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 01, 2018 at 10:51:14AM +1100, Stephen Rothwell wrote: > Hi Bjorn, > > After merging the pci tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > drivers/pci/dwc/pcie-designware-ep.c: In function 'dw_pcie_ep_raise_msi_irq': > drivers/pci/dwc/pcie-designware-ep.c:293:8: error: too few arguments to function 'dw_pcie_ep_map_addr' > ret = dw_pcie_ep_map_addr(epc, ep->msi_mem_phys, msg_addr, > ^~~~~~~~~~~~~~~~~~~ > drivers/pci/dwc/pcie-designware-ep.c:177:12: note: declared here > static int dw_pcie_ep_map_addr(struct pci_epc *epc, u8 func_no, > ^~~~~~~~~~~~~~~~~~~ > drivers/pci/dwc/pcie-designware-ep.c:300:2: error: too few arguments to function 'dw_pcie_ep_unmap_addr' > dw_pcie_ep_unmap_addr(epc, ep->msi_mem_phys); > ^~~~~~~~~~~~~~~~~~~~~ > drivers/pci/dwc/pcie-designware-ep.c:161:13: note: declared here > static void dw_pcie_ep_unmap_addr(struct pci_epc *epc, u8 func_no, > ^~~~~~~~~~~~~~~~~~~~~ > > Caused by commit > > 4494738de0d9 ("PCI: endpoint: Add the function number as argument to EPC ops") > > interacting with commit > > 6f6d7873711c ("PCI: designware-ep: Add generic function for raising MSI irq") > > This should have been fixed up in commit > > 26b259ab4fe8 ("Merge remote-tracking branch 'lorenzo/pci/dwc' into next") > > I have used the pci tree from next-20180131 for today. Hello, A suggested merge resolution included as an attachment. Regards, Niklas --lrZ03NoBR/3+SXJZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="dwc-ep.patch" diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 39e4a9744863..ed8558d638e5 100644 --- a/drivers/pci/dwc/pci-dra7xx.c +++ b/drivers/pci/dwc/pci-dra7xx.c @@ -368,7 +368,7 @@ static void dra7xx_pcie_raise_msi_irq(struct dra7xx_pcie *dra7xx, dra7xx_pcie_writel(dra7xx, PCIECTRL_TI_CONF_MSI_XMT, reg); } -static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, +static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, enum pci_epc_irq_type type, u8 interrupt_num) { struct dw_pcie *pci = to_dw_pcie_from_ep(ep); diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index 34ae163603ee..93b3df9ed1b5 100644 --- a/drivers/pci/dwc/pcie-artpec6.c +++ b/drivers/pci/dwc/pcie-artpec6.c @@ -445,7 +445,7 @@ static void artpec6_pcie_ep_init(struct dw_pcie_ep *ep) dw_pcie_ep_reset_bar(pci, bar); } -static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, +static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, enum pci_epc_irq_type type, u8 interrupt_num) { struct dw_pcie *pci = to_dw_pcie_from_ep(ep); @@ -455,7 +455,7 @@ static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, dev_err(pci->dev, "EP cannot trigger legacy IRQs\n"); return -EINVAL; case PCI_EPC_IRQ_MSI: - return dw_pcie_ep_raise_msi_irq(ep, interrupt_num); + return dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num); default: dev_err(pci->dev, "UNKNOWN IRQ type\n"); } diff --git a/drivers/pci/dwc/pcie-designware-ep.c b/drivers/pci/dwc/pcie-designware-ep.c index c0395e1f470a..3a6feeff5f5b 100644 --- a/drivers/pci/dwc/pcie-designware-ep.c +++ b/drivers/pci/dwc/pcie-designware-ep.c @@ -229,7 +229,7 @@ static int dw_pcie_ep_raise_irq(struct pci_epc *epc, u8 func_no, if (!ep->ops->raise_irq) return -EINVAL; - return ep->ops->raise_irq(ep, type, interrupt_num); + return ep->ops->raise_irq(ep, func_no, type, interrupt_num); } static void dw_pcie_ep_stop(struct pci_epc *epc) @@ -267,7 +267,7 @@ static const struct pci_epc_ops epc_ops = { .stop = dw_pcie_ep_stop, }; -int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, +int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, u8 interrupt_num) { struct dw_pcie *pci = to_dw_pcie_from_ep(ep); @@ -290,14 +290,14 @@ int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, msg_data = dw_pcie_readw_dbi(pci, MSI_MESSAGE_DATA_32); } msg_addr = ((u64) msg_addr_upper) << 32 | msg_addr_lower; - ret = dw_pcie_ep_map_addr(epc, ep->msi_mem_phys, msg_addr, + ret = dw_pcie_ep_map_addr(epc, func_no, ep->msi_mem_phys, msg_addr, epc->mem->page_size); if (ret) return ret; writel(msg_data | (interrupt_num - 1), ep->msi_mem); - dw_pcie_ep_unmap_addr(epc, ep->msi_mem_phys); + dw_pcie_ep_unmap_addr(epc, func_no, ep->msi_mem_phys); return 0; } diff --git a/drivers/pci/dwc/pcie-designware.h b/drivers/pci/dwc/pcie-designware.h index 7e52119f0e96..11b13864a406 100644 --- a/drivers/pci/dwc/pcie-designware.h +++ b/drivers/pci/dwc/pcie-designware.h @@ -186,8 +186,8 @@ enum dw_pcie_as_type { struct dw_pcie_ep_ops { void (*ep_init)(struct dw_pcie_ep *ep); - int (*raise_irq)(struct dw_pcie_ep *ep, enum pci_epc_irq_type type, - u8 interrupt_num); + int (*raise_irq)(struct dw_pcie_ep *ep, u8 func_no, + enum pci_epc_irq_type type, u8 interrupt_num); }; struct dw_pcie_ep { @@ -342,7 +342,8 @@ static inline int dw_pcie_host_init(struct pcie_port *pp) void dw_pcie_ep_linkup(struct dw_pcie_ep *ep); int dw_pcie_ep_init(struct dw_pcie_ep *ep); void dw_pcie_ep_exit(struct dw_pcie_ep *ep); -int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 interrupt_num); +int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, + u8 interrupt_num); void dw_pcie_ep_reset_bar(struct dw_pcie *pci, enum pci_barno bar); #else static inline void dw_pcie_ep_linkup(struct dw_pcie_ep *ep) @@ -358,7 +359,7 @@ static inline void dw_pcie_ep_exit(struct dw_pcie_ep *ep) { } -static inline int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, +static inline int dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep *ep, u8 func_no, u8 interrupt_num) { return 0; --lrZ03NoBR/3+SXJZ--