CAIF: fix sparse warning for caif_usb
Subsystems (2)
PATCH v3 1/1 CAIF: fix sparse warning for caif_usb
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]>
--- net/caif/caif_usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/caif/caif_usb.c +2 -2
@@ -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 );
Signature · 1 line
1.7.9.5
From: Silviu-Mihai Popescu <[email protected]>
Date: Mon, 4 Mar 2013 09:09:31 +0200
Quoted 5 lines
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]>
Applied.