]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap: fix warning with LPAE build
authorOlof Johansson <olof@lixom.net>
Wed, 13 Nov 2013 06:51:28 +0000 (22:51 -0800)
committerOlof Johansson <olof@lixom.net>
Mon, 25 Nov 2013 21:34:48 +0000 (13:34 -0800)
commita70cf9efc8169fa085af7f8a97dd89774353ec9e
treedf7dfc2e00cb6e6399e329394d31f70db375e025
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
ARM: omap: fix warning with LPAE build

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 <olof@lixom.net>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm34xx.c