USB: cdc-wdm: properly include types.h
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:32:10 +0000 (16:32 -0700)
committerJiri Slaby <jslaby@suse.cz>
Fri, 20 Jun 2014 15:34:09 +0000 (17:34 +0200)
commit 7ac3764fcafc06e72e1a79a9d998b9fdd900b2a6 upstream.

The file include/uapi/linux/usb/cdc-wdm.h uses a __u16 so it needs to
include types.h as well to make the build system happy.

Fixes: 3edce1cf813a ("USB: cdc-wdm: implement IOCTL_WDM_MAX_COMMAND")
Cc: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
include/uapi/linux/usb/cdc-wdm.h

index f03134feebd6a856446f8a35f056d1c3cb71f6da..0dc132e7503027cd5f5e3f221e652852afac9363 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _UAPI__LINUX_USB_CDC_WDM_H
 #define _UAPI__LINUX_USB_CDC_WDM_H
 
+#include <linux/types.h>
+
 /*
  * This IOCTL is used to retrieve the wMaxCommand for the device,
  * defining the message limit for both reading and writing.