summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-11-14 07:27:03 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-14 14:02:08 +0100
commit06c2351fdebb38803f10ace19ed8daf9b9c91e12 (patch)
tree4018a8575bd817c872937c9025aa096f75bd6681
parentopenvswitch: Fix return value check in ovs_meter_cmd_features() (diff)
downloadlinux-06c2351fdebb38803f10ace19ed8daf9b9c91e12.tar.xz
linux-06c2351fdebb38803f10ace19ed8daf9b9c91e12.zip
openvswitch: Make local function ovs_nsh_key_attr_size() static
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>
-rw-r--r--net/openvswitch/flow_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c
index bb4dae198c78..dc424798ba6f 100644
--- a/net/openvswitch/flow_netlink.c
+++ b/net/openvswitch/flow_netlink.c
@@ -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.