Skip to content

Commit

Permalink
Staging: rts5139: Fix Sparse Warning for Static Declarations in rts51x.c
Browse files Browse the repository at this point in the history
This patch fixes the following sparse warning in rts51x.c

drivers/staging/rts5139/rts51x.c:218:5: warning: symbol 'rts51x_pre_reset' was not declared. Should it be static?
drivers/staging/rts5139/rts51x.c:229:5: warning: symbol 'rts51x_post_reset' was not declared. Should it be static?

Signed-off-by: Monam Agarwal <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
MonamAgarwal authored and gregkh committed Mar 7, 2014
1 parent 064bf47 commit c2f4527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rts5139/rts51x.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void rts51x_try_to_exit_ss(struct rts51x_chip *chip)
* a USB port reset, whether from this driver or a different one.
*/

int rts51x_pre_reset(struct usb_interface *iface)
static int rts51x_pre_reset(struct usb_interface *iface)
{
struct rts51x_chip *chip = usb_get_intfdata(iface);

Expand All @@ -226,7 +226,7 @@ int rts51x_pre_reset(struct usb_interface *iface)
return 0;
}

int rts51x_post_reset(struct usb_interface *iface)
static int rts51x_post_reset(struct usb_interface *iface)
{
struct rts51x_chip *chip = usb_get_intfdata(iface);

Expand Down

0 comments on commit c2f4527

Please sign in to comment.