• Octavian Purdila's avatar
    goldfish: pipe: fix warnings for 32bit builds · f4e131dc
    Octavian Purdila authored
    drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd_status':
    drivers/platform/goldfish/goldfish_pipe.c:164:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
                     ^
    drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd':
    drivers/platform/goldfish/goldfish_pipe.c:180:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
                     ^
    drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_pipe_read_write':
    drivers/platform/goldfish/goldfish_pipe.c:337:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
           writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
    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>
    f4e131dc
goldfish_pipe.c 17.3 KB