Grr. Sorry this patch has typo. X stable@xxxxxxxxxxxxxxx O stable@xxxxxxxxxxxxxxx give me v3 chance At Tue, 31 Jan 2012 16:28:22 -0800 (PST), 【RSO】森本 wrote: > > The usb/ch9.h will be installed to /usr/include/linux, > and it is used from user space. > But le16_to_cpu() is only defined for kernel code. > Without this patch, user space compile will be broken. > Special thanks to Stefan Becker > > Cc: stable@xxxxxxxxxxxxxxx # 3.2 > Reported-by: Stefan Becker <chemobejk@xxxxxxxxx> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx> > --- > Stefan, Alan, Sergei, thank you very much for some advice > > v1 -> v2 > > - modify Subject and comment > - used __le16_to_cpu() instead of __KERNEL__ > - Add Cc statble > > include/linux/usb/ch9.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h > index 61b2905..3b6f628 100644 > --- a/include/linux/usb/ch9.h > +++ b/include/linux/usb/ch9.h > @@ -589,7 +589,7 @@ static inline int usb_endpoint_is_isoc_out( > */ > static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) > { > - return le16_to_cpu(epd->wMaxPacketSize); > + return __le16_to_cpu(epd->wMaxPacketSize); > } > > /*-------------------------------------------------------------------------*/ > -- > 1.7.5.4 > 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