From patchwork Thu Sep 12 09:32:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2877181 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 44722BF43F for ; Thu, 12 Sep 2013 09:32:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD417202EA for ; Thu, 12 Sep 2013 09:32:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 29B8E202DD for ; Thu, 12 Sep 2013 09:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751136Ab3ILJcr (ORCPT ); Thu, 12 Sep 2013 05:32:47 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:62870 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963Ab3ILJcq (ORCPT ); Thu, 12 Sep 2013 05:32:46 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT000ABUAIKWP00@mailout1.samsung.com> for linux-pci@vger.kernel.org; Thu, 12 Sep 2013 18:32:45 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 00.CF.31253.C3A81325; Thu, 12 Sep 2013 18:32:44 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-9f-52318a3cb15f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 86.7A.05832.C3A81325; Thu, 12 Sep 2013 18:32:44 +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 <0MT000BZ3AIK8N70@mmp1.samsung.com>; Thu, 12 Sep 2013 18:32:44 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: 'Thierry Reding' , linux-pci@vger.kernel.org, 'Stephen Warren' , 'Jingoo Han' Subject: [PATCH 1/3] PCI: tegra: add missing __iomem annotation Date: Thu, 12 Sep 2013 18:32:45 +0900 Message-id: <000201ceaf9b$098780b0$1c968210$%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: Ac6vmwlw4HfqNtHBQ7mmAo8MChTKZg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t8zfV2bLsMgg4b1FhZLmjIsLi+8xGpx dt5xNosb01tYLX7umsfiwOqxc9Zddo8Fm0o9epvfsXn0bVnF6PF5k1wAaxSXTUpqTmZZapG+ XQJXxrU1N1kLbnFXHGmdzNjA+I2zi5GTQ0LAROLXltdMELaYxIV769m6GLk4hASWMUr8vXGY Gabo2v2TUIlFjBLnN31lhnB+MUpM2LuIFaSKTUBN4suXw+wgtoiApsTsFVuYQIqYBaYzSqw5 NIERJCEsYC/xZdNxNhCbRUBV4sqk12DNvAK2Er8evmaEsAUlfky+xwJiMwtoSazfeZwJwpaX 2LzmLdBmDqCT1CUe/dWF2KUnMW/jYmaIEhGJfS/eMYLslRA4xi5x6DfEbywCAhLfJh9igeiV ldh0AOozSYmDK26wTGAUm4Vk8ywkm2ch2TwLyYoFjCyrGEVTC5ILipPSi0z0ihNzi0vz0vWS 83M3MUIib8IOxnsHrA8xJgOtn8gsJZ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WO88WvrRccr07f6aN1kOSVttmLG6 bKaxh91RrulqXPcXf5uksWnmAme7+f9mPCzYupjpesic4CvaK5Y91zzzR3Nm5DnFm5d3by8R 9N228Pf92ZlLXIyUWIozEg21mIuKEwGLUybXLwMAAA== 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.8 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,