Commit f2dbdf62 authored by Octavian Purdila's avatar Octavian Purdila Committed by Greg Kroah-Hartman

goldfish: bus: fix warnings for 32bit builds

drivers/platform/goldfish/pdev_bus.c: In function 'goldfish_new_pdev':
drivers/platform/goldfish/pdev_bus.c:136:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  writel((u32)(u64)name, pdev_bus_base + PDEV_BUS_GET_NAME);
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Cc: Jun Tian <jun.j.tian@intel.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarOctavian Purdila <octavian.purdila@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f18a277
...@@ -133,7 +133,7 @@ static int goldfish_new_pdev(void) ...@@ -133,7 +133,7 @@ static int goldfish_new_pdev(void)
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
writel((u32)((u64)name>>32), pdev_bus_base + PDEV_BUS_GET_NAME_HIGH); writel((u32)((u64)name>>32), pdev_bus_base + PDEV_BUS_GET_NAME_HIGH);
#endif #endif
writel((u32)(u64)name, pdev_bus_base + PDEV_BUS_GET_NAME); writel((u32)(unsigned long)name, pdev_bus_base + PDEV_BUS_GET_NAME);
name[name_len] = '\0'; name[name_len] = '\0';
dev->pdev.id = readl(pdev_bus_base + PDEV_BUS_ID); dev->pdev.id = readl(pdev_bus_base + PDEV_BUS_ID);
dev->pdev.resource[0].start = base; dev->pdev.resource[0].start = base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment