From: Kuninori Morimoto Date: Wed, 1 Feb 2012 00:43:50 +0000 (-0800) Subject: usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu() X-Git-Tag: v3.2.6~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=915cf0ec84e35d10f00166d3c9b64b12e605c792;p=karo-tx-linux.git usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu() commit 9c0a835a9d9aed41bcf9c287f5069133a6e2a87b upstream. The usb/ch9.h will be installed to /usr/include/linux, and be 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 Reported-by: Stefan Becker Signed-off-by: Kuninori Morimoto Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index 61b29057b054..3b6f628880f8 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); } /*-------------------------------------------------------------------------*/