summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorGreg Rose <gvrose8192@gmail.com>2019-11-05 14:14:24 -0800
committerBen Pfaff <blp@ovn.org>2019-11-20 15:23:53 -0800
commit89a84caf9ce9e64cef74e9e71ce3aeacb721795c (patch)
tree969f7b3554a82032647e59d8d12705213b90e683 /datapath
parentafc0c379f6e13cdcbb4447f17bbb74b882503af4 (diff)
downloadopenvswitch-89a84caf9ce9e64cef74e9e71ce3aeacb721795c.tar.gz
compat: Add missing inline keyword
The missing inline keyword before the definition of the rpl_nf_ct_tmpl_free() function causes spurious warnings about the function not being used on some older kernels. Add the keyword to suppress the warning. Signed-off-by: Greg Rose <gvrose8192@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath')
-rw-r--r--datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h b/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
index bb3d79471..4cce92f66 100644
--- a/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
+++ b/datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h
@@ -33,7 +33,7 @@ out_free:
}
#define nf_ct_tmpl_alloc rpl_nf_ct_tmpl_alloc
-static void rpl_nf_ct_tmpl_free(struct nf_conn *tmpl)
+static inline void rpl_nf_ct_tmpl_free(struct nf_conn *tmpl)
{
nf_ct_ext_destroy(tmpl);
nf_ct_ext_free(tmpl);