]> git.proxmox.com Git - ovs.git/commitdiff
compat: Add missing inline keyword
authorGreg Rose <gvrose8192@gmail.com>
Tue, 5 Nov 2019 22:14:24 +0000 (14:14 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 20 Nov 2019 23:23:53 +0000 (15:23 -0800)
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>
datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h

index bb3d7947183e808f8b5037dfa0aba65fca078f3e..4cce92f66ca51f819e140ad97d82a57bf8ea2422 100644 (file)
@@ -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);