[PATCH] usb: g_ffs: fix compilation warning
From: David Cohen
Date: Fri Oct 04 2013 - 17:44:58 EST
Due to lack of "u_ether.h" header file, g_ffs.c compiles with following
warning:
drivers/usb/gadget/g_ffs.c:81:1: warning: data definition has no type or
storage class [enabled by default]
drivers/usb/gadget/g_ffs.c:81:1: warning: type defaults to âintâ in
declaration of âUSB_ETHERNET_MODULE_PARAMETERSâ [-Wimplicit-int]
drivers/usb/gadget/g_ffs.c:81:1: warning: function declaration isnât a
prototype [-Wstrict-prototypes]
This patch adds the missing header.
Signed-off-by: David Cohen <david.a.cohen@xxxxxxxxxxxxxxx>
---
drivers/usb/gadget/g_ffs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/gadget/g_ffs.c b/drivers/usb/gadget/g_ffs.c
index 5327c82..ed3d9ab 100644
--- a/drivers/usb/gadget/g_ffs.c
+++ b/drivers/usb/gadget/g_ffs.c
@@ -13,6 +13,9 @@
#define pr_fmt(fmt) "g_ffs: " fmt
#include <linux/module.h>
+
+#include "u_ether.h"
+
/*
* kbuild is not very cooperative with respect to linking separately
* compiled library objects into one module. So for now we won't use
--
1.8.4.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/