From patchwork Wed Nov 13 06:53:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 3177081 Return-Path: X-Original-To: patchwork-linux-arm@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 7C998C045B for ; Wed, 13 Nov 2013 06:53:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A88A620578 for ; Wed, 13 Nov 2013 06:53:48 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB9F220564 for ; Wed, 13 Nov 2013 06:53:47 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUKX-0004Iz-Oa; Wed, 13 Nov 2013 06:53:37 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUKV-0005yJ-CX; Wed, 13 Nov 2013 06:53:35 +0000 Received: from mail-pb0-f53.google.com ([209.85.160.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VgUKS-0005xw-E1 for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2013 06:53:32 +0000 Received: by mail-pb0-f53.google.com with SMTP id ma3so470224pbc.40 for ; Tue, 12 Nov 2013 22:53:09 -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=iXJ2Gs/0Zic90wTNTrSNkQtfo1peh3eNZI+GXkx9XHI=; b=Z+P22qdLaIta8Erzg1QtTtA9r5QvJFyON+YMm2P6ZQFt4AvP9sur7wZCD8GHvxf1wy 9wfreIlR5NWiTvwC8z/93R/KABL7/iSNN+x+7cReAx2wwuKg+tX9Uooh9u/fh4JKJktl qNvGtiG3MNX32TZGGRinHVR7gKMZfD80xjeGhB20WPEBgCJJWQVPhM4otxidcMOxghu0 RFJqwiZCu5JOY3Dk4sQ7+9bNDtUqxNWl9E/BGYzmMtnfzpQsuG5VtCO/sBlwBmmH9ODN Hf/tjCNoYxfD/jBp51f6lqR+wi/GrJVkZ5UZr0agjNBah923q3ftkBh30xbZZr29wZRe 1Z/A== X-Gm-Message-State: ALoCoQnmxElam1LHf+joZVKFmMuj5cNJKWt+XVd1oyk3tWjdD4gdk7LWlFDeKeB4egmGOxAic9Al X-Received: by 10.68.98.4 with SMTP id ee4mr377517pbb.183.1384325589168; Tue, 12 Nov 2013 22:53:09 -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 bp5sm42137821pbb.18.2013.11.12.22.53.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Nov 2013 22:53:08 -0800 (PST) From: Olof Johansson To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: omap: fix warning with LPAE build Date: Tue, 12 Nov 2013 22:53:50 -0800 Message-Id: <1384325630-26998-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-20131113_015332_582784_3BDA0C99 X-CRM114-Status: GOOD ( 11.25 ) X-Spam-Score: -2.6 (--) Cc: tony@atomide.com, Olof Johansson X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Some omap3 code is throwing a warning: arch/arm/mach-omap2/pm34xx.c: In function 'omap3_save_secure_ram_context': arch/arm/mach-omap2/pm34xx.c:123:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] In reality this code will never actually execute with LPAE=y, since Cortex-A8 doesn't support it. So downcasting the __pa() is safe in this case. Signed-off-by: Olof Johansson Acked-by: Tony Lindgren --- Tony, queue up if you have a fixes branch please, otherwise I can apply directly. arch/arm/mach-omap2/pm34xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 93b80e5..1f3770a 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -120,7 +120,7 @@ static void omap3_save_secure_ram_context(void) * will hang the system. */ pwrdm_set_next_pwrst(mpu_pwrdm, PWRDM_POWER_ON); - ret = _omap_save_secure_sram((u32 *) + ret = _omap_save_secure_sram((u32 *)(unsigned long) __pa(omap3_secure_ram_storage)); pwrdm_set_next_pwrst(mpu_pwrdm, mpu_next_state); /* Following is for error tracking, it should not happen */