From patchwork Mon Sep 23 04:33:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2926041 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 625D6BFF05 for ; Mon, 23 Sep 2013 04:33:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BB452052D for ; Mon, 23 Sep 2013 04:33:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DD8A20527 for ; Mon, 23 Sep 2013 04:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733Ab3IWEdw (ORCPT ); Mon, 23 Sep 2013 00:33:52 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:9019 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752694Ab3IWEdw (ORCPT ); Mon, 23 Sep 2013 00:33:52 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTK0089C9YA0K40@mailout3.samsung.com> for linux-pci@vger.kernel.org; Mon, 23 Sep 2013 13:33:50 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 9A.D5.31253.EA4CF325; Mon, 23 Sep 2013 13:33:50 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-8f-523fc4ae0056 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 74.0B.09055.EA4CF325; Mon, 23 Sep 2013 13:33:50 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MTK00B84A0E6481@mmp2.samsung.com>; Mon, 23 Sep 2013 13:33:50 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: 'Thierry Reding' , linux-pci@vger.kernel.org, 'Stephen Warren' , 'Jingoo Han' Subject: [PATCH V3 1/3] PCI: tegra: add missing __iomem annotation Date: Mon, 23 Sep 2013 13:33:50 +0900 Message-id: <000c01ceb816$19f0dd10$4dd29730$%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: Ac64FhnBjRak8XOoQvGUUoggPRoNbA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t8zY911R+yDDHavULFY0pRhcXnhJVaL s/OOs1ncmN7CavFz1zwWB1aPnbPusnss2FTq0dv8js2jb8sqRo/Pm+QCWKO4bFJSczLLUov0 7RK4Mg6f2MlU0MlTcaHrGnMD4wKuLkZODgkBE4kf//ewQ9hiEhfurWfrYuTiEBJYxijx4MwT RpiiG7e+gxUJCUxnlGhc4AZR9ItRYvX8TmaQBJuAmsSXL4fBikQENCVmr9jCBFLEDNKw5tAE sEnCAk4Sc6+uZwKxWQRUJXb+/Axm8wrYSjw49wDKFpT4MfkeC4jNLKAlsX7ncSYIW15i85q3 QMs4gC5Sl3j0Vxdil57E6/l72SBKRCT2vXjHCLJXQmAfu8TXWesZIXYJSHybfIgFoldWYtMB ZojHJCUOrrjBMoFRbBaSzbOQbJ6FZPMsJCsWMLKsYhRNLUguKE5KLzLRK07MLS7NS9dLzs/d xAiJuwk7GO8dsD7EmAy0fiKz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T7+29LkaXjViOy5aMP+2 5ew9hY9vLlGVN+fdpVK0efelSbPaNjzITdy61D9nasP3a7l9HaeMVeZP4j0fmRy00Whq1YYr 8oU3cw4psRRnJBpqMRcVJwIAGs6Ssi4DAAA= 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=-9.2 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 Acked-by: Thierry Reding --- 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,