usb: gadget: slp: remove build warnings 71/158571/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 2 Nov 2017 01:56:26 +0000 (10:56 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 2 Nov 2017 01:56:28 +0000 (10:56 +0900)
There are build warnings about incompatible pointer type and unused
function. Remove the build warnings.

Change-Id: I666cf0a172f9aa66a6dfbb06587bc6a0501cbdb5
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/gadget/slp.c

index e6e843f..6523abb 100644 (file)
@@ -814,7 +814,8 @@ err_usb_add_function:
  *in kernel 3.4 no acm_function_unbind_config, so now we don't use gser_function_unbind_config
  *to avoid kernel data abort. because in current s/w architecture it will delete function list two times.
  */
-static void gser_function_unbind_config(struct slp_multi_usb_function *f,
+static __maybe_unused
+void gser_function_unbind_config(struct slp_multi_usb_function *f,
                                       struct usb_configuration *c)
 {
        int i;
@@ -871,7 +872,7 @@ static int gser_function_ctrlrequest(struct slp_multi_usb_function *f,
        return gser_setup(cdev, c);
 }
 static ssize_t gser_port_store(struct device *dev,
-               struct device_attribute *attr, char *buf)
+               struct device_attribute *attr, const char *buf, size_t size)
 {
        int     count;