USB: Squash warning in usb_hub.c
PATCH 1/1 USB: Squash warning in usb_hub.c
usb_hub.c:79:12: warning: ?usb_clear_hub_feature? defined but not used [-Wunused-function]
Signed-off-by Marek Vasut <[email protected]>
Cc Wolfgang Denk <[email protected]>
--- common/usb_hub.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)
common/usb_hub.c +0 -7
@@ -76,13 +76,6 @@ static int usb_get_hub_descriptor(struct usb_device *dev, void *data, int size) USB_DT_HUB << 8, 0, data, size, USB_CNTL_TIMEOUT); } -static int usb_clear_hub_feature (struct usb_device *dev,int feature) -{ -return usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), -USB_REQ_CLEAR_FEATURE ,USB_RT_HUB , feature, -0 ,NULL ,0 ,USB_CNTL_TIMEOUT ); -} -static int usb_clear_port_feature (struct usb_device *dev,int port,int feature) { return usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
Signature · 1 line
1.7.9
PATCH 1/1 USB: Squash warning in usb_hub.c
Dear Marek Vasut,
Quoted 4 lines · In message <[email protected]> you wrote:
usb_hub.c:79:12: warning: ?usb_clear_hub_feature? defined but not used [-Wunused-function]
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>
This warning was introduced here:
40a5635d47e82b54af35888e5f357a6e58ad0937 is the first bad commit commit 40a5635d47e82b54af35888e5f357a6e58ad0937
Author: Marek Vasut <[email protected]>
Date: Mon Feb 13 18:58:16 2012 +0000
USB: Staticize internal functions
Signed-off-by Marek Vasut <[email protected]>
Cc Remy Bohmer <[email protected]>
Acked-by Mike Frysinger <[email protected]>
I will squash this patch with the original commit to avoid the warning in mainline.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A woman should have compassion. -- Kirk, "Catspaw", stardate 3018.2