Skip to content

Commit

Permalink
usb: gadget: configfs: include appropriate header file in configfs.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rashika Kheria authored and Felipe Balbi committed Dec 19, 2013
1 parent 1351867 commit 0009e99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/gadget/configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0009e99

Please sign in to comment.