[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1380923326-18546-1-git-send-email-david.a.cohen@linux.intel.com>
Date: Fri, 4 Oct 2013 14:48:46 -0700
From: David Cohen <david.a.cohen@...ux.intel.com>
To: gregkh@...uxfoundation.org, balbi@...com
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
David Cohen <david.a.cohen@...ux.intel.com>
Subject: [PATCH] usb: g_ffs: fix compilation warning
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@...ux.intel.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists