net: isdn: Make isdn_ppp_mp_discard and isdn_ppp_mp_reassembly static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 20 Mar 2019 13:48:06 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 19:25:59 +0000 (12:25 -0700)
Fix sparse warnings:

drivers/isdn/i4l/isdn_ppp.c:1891:16: warning:
 symbol 'isdn_ppp_mp_discard' was not declared. Should it be static?
drivers/isdn/i4l/isdn_ppp.c:1903:6: warning:
 symbol 'isdn_ppp_mp_reassembly' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/i4l/isdn_ppp.c

index a7b275e..7e0f419 100644 (file)
@@ -1888,8 +1888,9 @@ static u32 isdn_ppp_mp_get_seq(int short_seq,
        return seq;
 }
 
-struct sk_buff *isdn_ppp_mp_discard(ippp_bundle *mp,
-                                   struct sk_buff *from, struct sk_buff *to)
+static struct sk_buff *isdn_ppp_mp_discard(ippp_bundle *mp,
+                                          struct sk_buff *from,
+                                          struct sk_buff *to)
 {
        if (from)
                while (from != to) {
@@ -1900,8 +1901,8 @@ struct sk_buff *isdn_ppp_mp_discard(ippp_bundle *mp,
        return from;
 }
 
-void isdn_ppp_mp_reassembly(isdn_net_dev *net_dev, isdn_net_local *lp,
-                           struct sk_buff *from, struct sk_buff *to)
+static void isdn_ppp_mp_reassembly(isdn_net_dev *net_dev, isdn_net_local *lp,
+                                  struct sk_buff *from, struct sk_buff *to)
 {
        ippp_bundle *mp = net_dev->pb;
        int proto;