From: Alan Cox Date: Mon, 19 May 2014 13:34:09 +0000 (+0100) Subject: goldfish: fix >> 32 warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8d9e9857c576d8d710ae6a6152a6ddcd29772bb1;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/goldfish.h b/include/linux/goldfish.h index 9cc28902b54c..569236e6b2bc 100644 --- a/include/linux/goldfish.h +++ b/include/linux/goldfish.h @@ -7,7 +7,7 @@ static inline void gf_write64(unsigned long data, void __iomem *portl, void __iomem *porth) { writel((u32)data, portl); -#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT +#ifdef CONFIG_64BIT writel(data>>32, porth); #endif }