usb: gadget: configfs: include appropriate header file in configfs.c
authorRashika Kheria <rashika.kheria@gmail.com>
Thu, 19 Dec 2013 10:07:37 +0000 (15:37 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Dec 2013 15:27:42 +0000 (09:27 -0600)
Include appropriate header file drivers/usb/gadget/configfs.h in
gadget/configfs.c because function unregister_gadget_item() has its
prototype declaration in gadget/configfs.h.

This eliminates the following warning in gadget/configfs.c:
drivers/usb/gadget/configfs.c:994:6: warning: no previous prototype for â€˜unregister_gadget_item’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c

index d6c8ab4a5327922e65dbb29bdade3a56f429df04..7d1cc01796b60f7fc904fd6ac6a0da46b69de4d3 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/device.h>
 #include <linux/usb/composite.h>
 #include <linux/usb/gadget_configfs.h>
+#include "configfs.h"
 
 int check_user_usb_string(const char *name,
                struct usb_gadget_strings *stringtab_dev)