Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

goldfish: fix >> 32 warning

We should be checking for a 64bit platform not 64bit DMA address types in
the case of Goldfish. The Goldfish virtual platform is either 32/32 or
64/64.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
8d9e9857 85dfd522

+1 -1
+1 -1
include/linux/goldfish.h
··· 7 7 void __iomem *portl, void __iomem *porth) 8 8 { 9 9 writel((u32)data, portl); 10 - #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT 10 + #ifdef CONFIG_64BIT 11 11 writel(data>>32, porth); 12 12 #endif 13 13 }