From: Seung-Woo Kim Date: Wed, 1 Nov 2017 01:44:43 +0000 (+0900) Subject: usb: dwc_otg: fix build warnings from -Wstrict-prototypes X-Git-Tag: accepted/tizen/unified/20171106.073145~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=293b706fb202caf3852fd9b6dd85fed217f2ca5d;p=profile%2Fmobile%2Fplatform%2Fkernel%2Flinux-3.10-sc7730.git usb: dwc_otg: fix build warnings from -Wstrict-prototypes 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 --- diff --git a/drivers/usb/gadget/dwc_otg/dwc_otg_driver.h b/drivers/usb/gadget/dwc_otg/dwc_otg_driver.h index aebe9d7..27101d9 100644 --- a/drivers/usb/gadget/dwc_otg/dwc_otg_driver.h +++ b/drivers/usb/gadget/dwc_otg/dwc_otg_driver.h @@ -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() \ diff --git a/drivers/usb/gadget/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/gadget/dwc_otg/dwc_otg_hcd_linux.c index 2814a5a..68624c0 100644 --- a/drivers/usb/gadget/dwc_otg/dwc_otg_hcd_linux.c +++ b/drivers/usb/gadget/dwc_otg/dwc_otg_hcd_linux.c @@ -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) diff --git a/drivers/usb/gadget/dwc_otg/dwc_otg_pcd_linux.c b/drivers/usb/gadget/dwc_otg/dwc_otg_pcd_linux.c index 7b9ffaa..f8444ba 100755 --- a/drivers/usb/gadget/dwc_otg/dwc_otg_pcd_linux.c +++ b/drivers/usb/gadget/dwc_otg/dwc_otg_pcd_linux.c @@ -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)