openvswitch: Make local function ovs_nsh_key_attr_size() static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 14 Nov 2017 06:27:03 +0000 (06:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Nov 2017 13:02:08 +0000 (22:02 +0900)
Fixes the following sparse warnings:

net/openvswitch/flow_netlink.c:340:8: warning:
 symbol 'ovs_nsh_key_attr_size' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_netlink.c

index bb4dae198c788a4b195a1082054d10c552373b4b..dc424798ba6f3afcb3095e710ffaf5dfb42b85fe 100644 (file)
@@ -338,7 +338,7 @@ size_t ovs_tun_key_attr_size(void)
                + nla_total_size(4);   /* OVS_TUNNEL_KEY_ATTR_ERSPAN_OPTS */
 }
 
-size_t ovs_nsh_key_attr_size(void)
+static size_t ovs_nsh_key_attr_size(void)
 {
        /* Whenever adding new OVS_NSH_KEY_ FIELDS, we should consider
         * updating this function.