Re: [PATCH] usb: renesas_usbhs: fixup cast warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Greg

I'm so sorry.
This patch doesn't solve issue.
Please drop it.

At Thu, 14 Apr 2011 12:38:08 +0900,
【RSO】森本 wrote:
> 
> This patch fixup cast warning of 64 bit compiler
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> Reported-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> ---
>  drivers/usb/renesas_usbhs/pipe.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h
> index 4a60dce..59ce1b0 100644
> --- a/drivers/usb/renesas_usbhs/pipe.h
> +++ b/drivers/usb/renesas_usbhs/pipe.h
> @@ -93,7 +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) / \
> +#define usbhs_pipe_number(p)	(u32)(((p) - (p)->priv->pipe_info.pipe) / \
>  				 sizeof(struct usbhs_pipe))
>  
>  /*
> -- 
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


EC No. 11-TR0006 # Linux BSP
EC No. W         # public

Best regards
--
Kuninori Morimoto
 
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux