Skip to content

Commit

Permalink
CAIF: fix sparse warning for caif_usb
Browse files Browse the repository at this point in the history
This fixes the following sparse warning:
net/caif/caif_usb.c:84:16: warning: symbol 'cfusbl_create' was not
declared. Should it be static?

Signed-off-by: Silviu-Mihai Popescu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
silviupopescu authored and davem330 committed Mar 4, 2013
1 parent 7dac1b5 commit d2123be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/caif/caif_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ static void cfusbl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
layr->up->ctrlcmd(layr->up, ctrl, layr->id);
}

struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
u8 braddr[ETH_ALEN])
static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
u8 braddr[ETH_ALEN])
{
struct cfusbl *this = kmalloc(sizeof(struct cfusbl), GFP_ATOMIC);

Expand Down

0 comments on commit d2123be

Please sign in to comment.