From patchwork Mon Dec 8 21:45:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 5458831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C84299F1D4 for ; Mon, 8 Dec 2014 21:47:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2890920115 for ; Mon, 8 Dec 2014 21:47:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5169920155 for ; Mon, 8 Dec 2014 21:47:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xy65y-00016z-Ll; Mon, 08 Dec 2014 21:43:54 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xy65v-00013Y-Vy for linux-arm-kernel@lists.infradead.org; Mon, 08 Dec 2014 21:43:52 +0000 Received: by mail-pd0-f173.google.com with SMTP id ft15so5896081pdb.18 for ; Mon, 08 Dec 2014 13:43:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=S/G5Vni0tb3PBxoz3GxdBhckN/DEXhYF7Dg6PPFD/w0=; b=WwFUP+8LUdHOj9QuBDryhNKzgy3wfpceVEvTj43jGXSilkUCwIPxaZF7gu+V6JDdyz utzb5Z3jijheHyBSPvTzNKmg3vgaKgO4h/1mHWcxj7+w74nE6fMeYkP27441/Nq04PNr 8GerZl4t59cLau0NckX6IpP6gvFrJ+FB9tdd4y6i0XEmT0J2IN4Q1dVNhKpmem7i6pRW /rW6sBWoTslEDIi5x4DbXcZwQ8RRN0oGxolteC8PJ+zoEUR+O/1qUzm3bjstP8k+YSGX fdFisP/nqGuEi2vuJc6Tq9YdpEeHCj8f8UtPyULI1klQwbxmbJcIUS8619gWb3Hh+dM5 rQjQ== X-Gm-Message-State: ALoCoQlM9oHubjsJ1gxYclZlKiQeDOfsDR9TBZhZnMvaoEOHgx06PgoABm/8pjBZ2FGJoezck1/9 X-Received: by 10.70.53.35 with SMTP id y3mr24435991pdo.27.1418075010432; Mon, 08 Dec 2014 13:43:30 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id pk1sm37330857pdb.78.2014.12.08.13.43.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Dec 2014 13:43:29 -0800 (PST) From: Olof Johansson To: arm@kernel.org Subject: [PATCH] ARM: bcm: fix __iomem annotation on kona_smc Date: Mon, 8 Dec 2014 13:45:48 -0800 Message-Id: <1418075148-8752-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141208_134352_047318_47CA5B08 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -0.7 (/) Cc: f.fainelli@gmail.com, linux-kernel@vger.kernel.org, mporter@linaro.org, bcm-kernel-feedback-list@broadcom.com, Olof Johansson , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_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 Fixes the following sparse warning: arch/arm/mach-bcm/bcm_kona_smc.c:145:21: warning: incorrect type in initializer (different address spaces) arch/arm/mach-bcm/bcm_kona_smc.c:145:21: expected unsigned int [usertype] *args arch/arm/mach-bcm/bcm_kona_smc.c:145:21: got void [noderef] *static [toplevel] [assigned] bcm_smc_buffer arch/arm/mach-bcm/bcm_kona_smc.c:151:9: warning: incorrect type in argument 2 (different address spaces) arch/arm/mach-bcm/bcm_kona_smc.c:151:9: expected void volatile [noderef] *addr arch/arm/mach-bcm/bcm_kona_smc.c:151:9: got unsigned int [usertype] * [+ 2 more instances] Signed-off-by: Olof Johansson --- Florian, should we just apply this directly on arm-soc? -Olof arch/arm/mach-bcm/bcm_kona_smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/bcm_kona_smc.c b/arch/arm/mach-bcm/bcm_kona_smc.c index a55a7ec..d506d17 100644 --- a/arch/arm/mach-bcm/bcm_kona_smc.c +++ b/arch/arm/mach-bcm/bcm_kona_smc.c @@ -142,7 +142,7 @@ static int bcm_kona_do_smc(u32 service_id, u32 buffer_phys) static void __bcm_kona_smc(void *info) { struct bcm_kona_smc_data *data = info; - u32 *args = bcm_smc_buffer; + u32 __iomem *args = bcm_smc_buffer; BUG_ON(smp_processor_id() != 0); BUG_ON(!args);