提交 504b6163 编写于 作者: K Kuninori Morimoto 提交者: Greg Kroah-Hartman

usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu()

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: NStefan Becker <chemobejk@gmail.com>
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0a365706
...@@ -589,7 +589,7 @@ static inline int usb_endpoint_is_isoc_out( ...@@ -589,7 +589,7 @@ static inline int usb_endpoint_is_isoc_out(
*/ */
static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd)
{ {
return le16_to_cpu(epd->wMaxPacketSize); return __le16_to_cpu(epd->wMaxPacketSize);
} }
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册