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 <[email protected]>
Signed-off-by: Sergei Trofimovich <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: Greg KH <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to