Skip to content

Commit

Permalink
staging/usbip: Mark local functions as static (fix sparse warnings)
Browse files Browse the repository at this point in the history
sparse complains about these functions:
usbip/stub_dev.c:529:5: warning: symbol 'stub_pre_reset' was not declared. Should it be static?
usbip/stub_dev.c:535:5: warning: symbol 'stub_post_reset' was not declared. Should it be static?

-> add static keyword to silence the warning and make sparse happy.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent 771f3ee commit ff69443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/usbip/stub_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,13 +526,13 @@ static void stub_disconnect(struct usb_interface *interface)
* when the device is being reset
*/

int stub_pre_reset(struct usb_interface *interface)
static int stub_pre_reset(struct usb_interface *interface)
{
dev_dbg(&interface->dev, "pre_reset\n");
return 0;
}

int stub_post_reset(struct usb_interface *interface)
static int stub_post_reset(struct usb_interface *interface)
{
dev_dbg(&interface->dev, "post_reset\n");
return 0;
Expand Down

0 comments on commit ff69443

Please sign in to comment.