From: Kuninori Morimoto Date: Thu, 14 Apr 2011 04:57:06 +0000 (+0900) Subject: usb: renesas_usbhs: fixup cast warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c89d2613b8e13c51a6efe23196fdc509984687e7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb: renesas_usbhs: fixup cast warning This patch fixup cast warning on 64 bit compiler Signed-off-by: Kuninori Morimoto Reported-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h index 4a60dcef9676..1cca9b7fb266 100644 --- a/drivers/usb/renesas_usbhs/pipe.h +++ b/drivers/usb/renesas_usbhs/pipe.h @@ -93,8 +93,7 @@ void usbhs_pipe_init(struct usbhs_priv *priv); int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe); void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe); -#define usbhs_pipe_number(p) (((u32)(p) - (u32)(p)->priv->pipe_info.pipe) / \ - sizeof(struct usbhs_pipe)) +#define usbhs_pipe_number(p) (int)((p) - (p)->priv->pipe_info.pipe) /* * dcp control