1 Feb 2012 01:28
[PATCH v2] usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()
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@... # 3.2 Reported-by: Stefan Becker <chemobejk@...> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@...> --- 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 <at> <at> -589,7 +589,7 <at> <at> 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);(Continue reading)
RSS Feed