summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSilviu-Mihai Popescu <silviupopescu1990@gmail.com>2013-03-03 22:09:31 +0100
committerDavid S. Miller <davem@davemloft.net>2013-03-04 20:12:07 +0100
commitd2123be0e55101742dacd6dae60cdd0f1e2ef302 (patch)
tree7c1f5403e952fbec15f3865adf47bad91114ee55 /net
parentrds: simplify a warning message (diff)
downloadlinux-d2123be0e55101742dacd6dae60cdd0f1e2ef302.tar.xz
linux-d2123be0e55101742dacd6dae60cdd0f1e2ef302.zip
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 <silviupopescu1990@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/caif/caif_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c
index 3ebc8cbc91ff..ef8ebaa993cf 100644
--- a/net/caif/caif_usb.c
+++ b/net/caif/caif_usb.c
@@ -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);