Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754841AbbHQKXS (ORCPT ); Mon, 17 Aug 2015 06:23:18 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:59354 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751427AbbHQKXP convert rfc822-to-8bit (ORCPT ); Mon, 17 Aug 2015 06:23:15 -0400 X-IronPort-AV: E=Sophos;i="5.15,694,1432566000"; d="scan'208";a="193623264" From: Phil Edworthy To: Geert Uytterhoeven , Bjorn Helgaas , Simon Horman , Valentine Barshak CC: "linux-pci@vger.kernel.org" , "linux-sh@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] PCI: PCI_RCAR_GEN2 and PCI_RCAR_GEN2_PCIE should depend on ARM Thread-Topic: [PATCH] PCI: PCI_RCAR_GEN2 and PCI_RCAR_GEN2_PCIE should depend on ARM Thread-Index: AQHQ1DNRZtxg2PQYHUGyuaAJqFlQGp4QAQSQ Date: Mon, 17 Aug 2015 10:23:11 +0000 Message-ID: References: <1439296994-28480-1-git-send-email-geert+renesas@glider.be> In-Reply-To: <1439296994-28480-1-git-send-email-geert+renesas@glider.be> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;SIXPR06MB0413;5:wDpgzykV+PO+pQwQGVr+Qm4oLbUwVNQGJDMeDLcoG1lR0L1FtVbaDNB6QBvOpT5NKqe/09j7hm8G86wTs3kj+NPRYiD38xrI2hXHw4E1rjfD8rz0F9lzdiuGSndG7VZzuIa4QPRalz8xKDgLQ8tVFQ==;24:oFOJ2Z8ZyuyoBK4PKHYK6oNDTh9RcpyHiz/kkwIm2hD1mqIj2UkmAYxjZ6C+DEGL6iYWYKjaZ1wufXx6FFdI/exCsNrkWuoDO7fYf0oewOk=;20:PTh/v8CpJ0/AtK9/+81BB0heClJBCa8svbOSmUYy1kDFRBg/maOt+b1DuveKY8pgsoldO+jdtPXAa6VbLA8Pkro1mtL/8pmWRFuq2GtPvH+8UEYxxzPAhnxawlEijP+6xqTx9lyaUDPzNKYs8ILHW0l5gEBJZmTmhSe/ql6p5ys= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0413; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(8121501046)(5005006)(3002001);SRVR:SIXPR06MB0413;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0413; x-forefront-prvs: 0671F32598 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(189002)(199003)(64706001)(54356999)(189998001)(101416001)(87936001)(10400500002)(77156002)(5001860100001)(2656002)(4001540100001)(66066001)(76176999)(122556002)(62966003)(97736004)(74316001)(5001830100001)(19580395003)(575784001)(40100003)(105586002)(5002640100001)(106356001)(76576001)(81156007)(5001770100001)(19580405001)(2900100001)(2950100001)(106116001)(5001960100002)(68736005)(77096005)(86362001)(46102003)(15975445007)(102836002)(92566002)(50986999)(33656002)(5003600100002);DIR:OUT;SFP:1102;SCL:1;SRVR:SIXPR06MB0413;H:SIXPR06MB0415.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2015 10:23:11.8330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0413 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2260 Lines: 68 Hi Geert, On 11 August 2015 13:43, Geert wrote: > On arm64/shmobile: > > drivers/pci/host/pci-rcar-gen2.c: In function 'rcar_pci_cfg_base': > drivers/pci/host/pci-rcar-gen2.c:112:34: error: dereferencing pointer to > incomplete type > struct rcar_pci_priv *priv = sys->private_data; > ^ > > and > > drivers/pci/host/pcie-rcar.c:138:52: warning: 'struct pci_sys_data' declared > inside parameter list > static inline struct rcar_pcie *sys_to_pcie(struct pci_sys_data *sys) > ^ > > pci_sys_data exists on ARM only, hence these drivers should depend on > ARM unconditionally. Since these drivers should also be used for R-Car Gen3, I assume someone will have to fix the problem in the same way the designware pci driver is being modified. Please see http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/353421.html Of course, as a quick fix for the compile test failure, this is fine. Best regards Phil > > Signed-off-by: Geert Uytterhoeven > --- > drivers/pci/host/Kconfig | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig > index 48b5b3058d9d09eb..e94392560842be0a 100644 > --- a/drivers/pci/host/Kconfig > +++ b/drivers/pci/host/Kconfig > @@ -39,7 +39,8 @@ config PCI_TEGRA > > config PCI_RCAR_GEN2 > bool "Renesas R-Car Gen2 Internal PCI controller" > - depends on ARCH_SHMOBILE || (ARM && COMPILE_TEST) > + depends on ARM > + depends on ARCH_SHMOBILE || COMPILE_TEST > help > Say Y here if you want internal PCI support on R-Car Gen2 SoC. > There are 3 internal PCI controllers available with a single > @@ -47,7 +48,8 @@ config PCI_RCAR_GEN2 > > config PCI_RCAR_GEN2_PCIE > bool "Renesas R-Car PCIe controller" > - depends on ARCH_SHMOBILE || (ARM && COMPILE_TEST) > + depends on ARM > + depends on ARCH_SHMOBILE || COMPILE_TEST > help > Say Y here if you want PCIe controller support on R-Car Gen2 SoCs. > > -- > 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/