[PATCH] drivers/usb/gadget/g_ffs.c: add missing header "u_ether.h"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In some .config modes [1] macro 'USB_ETHERNET_MODULE_PARAMETERS'
gets used without declaration:

    drivers/usb/gadget/g_ffs.c:79: warning: data definition has no type or storage class
    drivers/usb/gadget/g_ffs.c:79: warning: type defaults to 'int' in declaration of 'USB_ETHERNET_MODULE_PARAMETERS'
    drivers/usb/gadget/g_ffs.c:79: warning: function declaration isn't a prototype

[1]: https://lists.01.org/pipermail/kbuild-all/2013-August/001034.html

Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Signed-off-by: Sergei Trofimovich <slyfox@xxxxxxxxxx>
Cc: Felipe Balbi <balbi@xxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: linux-usb@xxxxxxxxxxxxxxx
Cc: Greg KH <greg@xxxxxxxxx>
---
 drivers/usb/gadget/g_ffs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/gadget/g_ffs.c b/drivers/usb/gadget/g_ffs.c
index 5327c82..8f8e2af 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
@@ -37,7 +40,6 @@
 #    include "f_rndis.c"
 #    include "rndis.h"
 #  endif
-#  include "u_ether.h"
 
 static u8 gfs_host_mac[ETH_ALEN];
 static struct eth_dev *the_dev;
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux