usb: dwc_otg: fix build warnings from -Wstrict-prototypes 18/158418/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 01:44:43 +0000 (10:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 1 Nov 2017 01:44:58 +0000 (10:44 +0900)
There are functions without parameter type, and it causes build
warning from -Wstrict-prototypes. Fix the build warnings by adding
parameter type.

Change-Id: I0b195d65e2c19727d6372310b1032a9b482412ab
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/gadget/dwc_otg/dwc_otg_driver.h
drivers/usb/gadget/dwc_otg/dwc_otg_hcd_linux.c
drivers/usb/gadget/dwc_otg/dwc_otg_pcd_linux.c

index aebe9d7..27101d9 100644 (file)
@@ -82,8 +82,8 @@ typedef struct dwc_otg_device {
  * timing latencies and Low Level IRQ Type.
  */
 
-struct device *get_hcd_device();
-struct device *get_gadget_wrapper_device();
+struct device *get_hcd_device(void);
+struct device *get_gadget_wrapper_device(void);
 
 #ifdef CONFIG_MACH_IPMATE
 #define  S3C2410X_CLEAR_EINTPEND()   \
index 2814a5a..68624c0 100644 (file)
@@ -1033,7 +1033,7 @@ int hub_control(struct usb_hcd *hcd,
        return retval;
 }
 
-struct device *get_hcd_device()
+struct device *get_hcd_device(void)
 {
 #ifdef CONFIG_ARM64
 if(NULL != device_hcd_dwc_otg)
index 7b9ffaa..f8444ba 100755 (executable)
@@ -1643,7 +1643,7 @@ int usb_register_hotplug_callback(struct usb_hotplug_callback *cb)
 }
 EXPORT_SYMBOL(usb_register_hotplug_callback);
 
-struct device *get_gadget_wrapper_device()
+struct device *get_gadget_wrapper_device(void)
 {
 #ifdef CONFIG_ARM64
 if(NULL != device_dwc_otg)