From patchwork Tue Sep 17 05:25:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900851 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A7F81BFF05 for ; Tue, 17 Sep 2013 05:26:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6430201BF for ; Tue, 17 Sep 2013 05:26:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A4402012C for ; Tue, 17 Sep 2013 05:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751238Ab3IQFZ6 (ORCPT ); Tue, 17 Sep 2013 01:25:58 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:59342 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162Ab3IQFZ6 (ORCPT ); Tue, 17 Sep 2013 01:25:58 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900FU18EDUF10@mailout4.samsung.com> for linux-pci@vger.kernel.org; Tue, 17 Sep 2013 14:25:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 39.40.20109.DD7E7325; Tue, 17 Sep 2013 14:25:49 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-26-5237e7dd7638 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 59.B6.05832.DD7E7325; Tue, 17 Sep 2013 14:25:49 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT9001C58F1MX50@mmp1.samsung.com>; Tue, 17 Sep 2013 14:25:49 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: 'Thierry Reding' , linux-pci@vger.kernel.org, 'Stephen Warren' , 'Jingoo Han' Subject: [PATCH V2 1/3] PCI: tegra: add missing __iomem annotation Date: Tue, 17 Sep 2013 14:25:49 +0900 Message-id: <001a01ceb366$5e9481b0$1bbd8510$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6zZl5+kmbKEZAhToGpxpyQ271bsQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zY927z82DDA5d1rVY0pRhcXnhJVaL s/OOs1ncmN7CavFz1zwWB1aPnbPusnss2FTq0dv8js2jb8sqRo/Pm+QCWKO4bFJSczLLUov0 7RK4Mq6tuclacIu74kjrZMYGxm+cXYycHBICJhIdU1qYIWwxiQv31rN1MXJxCAksY5S4tXU3 M0zRrM+tLBCJRYwSPS0HmCGcX4wSJ643s4JUsQmoSXz5cpgdxBYR0JSYvWILE0gRs8B0Rok1 hyYwgiSEBZwkZt45ygJiswioSnxd9wmsmVfAVuL9oe+MELagxI/J98BqmAW0JNbvPM4EYctL bF7zFmgzB9BJ6hKP/upC7NKTWNfTzAhRIiKx78U7RpC9EgL72CXa96xjh9glIPFt8iEWiF5Z iU0HoD6TlDi44gbLBEaxWUg2z0KyeRaSzbOQrFjAyLKKUTS1ILmgOCm9yFivODG3uDQvXS85 P3cTIyTy+ncw3j1gfYgxGWj9RGY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elZnV0mvM91 cWlbYUKVeBSjhnGHrk5m6kUv1q2fHcuywi6a93ya0Ca1el3D2WUVQTOfuN4xZKvrXZPs3cMk eoCFfTtDmBJLcUaioRZzUXEiAOWSXvMvAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added missing __iomem annotation in order to fix the following sparse warnings: drivers/pci/host/pci-tegra.c:411:41: warning: incorrect type in return expression (different address spaces) drivers/pci/host/pci-tegra.c:411:41: expected void [noderef] * drivers/pci/host/pci-tegra.c:411:41: got void *addr drivers/pci/host/pci-tegra.c:419:25: warning: incorrect type in return expression (different address spaces) drivers/pci/host/pci-tegra.c:419:25: expected void [noderef] * drivers/pci/host/pci-tegra.c:419:25: got void *addr Signed-off-by: Jingoo Han --- drivers/pci/host/pci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index 2e9888a..7c4f38d 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c @@ -408,7 +408,7 @@ static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie, list_for_each_entry(bus, &pcie->busses, list) if (bus->nr == busnr) - return bus->area->addr; + return (void __iomem *)bus->area->addr; bus = tegra_pcie_bus_alloc(pcie, busnr); if (IS_ERR(bus)) @@ -416,7 +416,7 @@ static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie, list_add_tail(&bus->list, &pcie->busses); - return bus->area->addr; + return (void __iomem *)bus->area->addr; } static void __iomem *tegra_pcie_conf_address(struct pci_bus *bus,