]> git.proxmox.com Git - ovs.git/commitdiff
compat: Fix small naming issue
authorGreg Rose <gvrose8192@gmail.com>
Wed, 16 Oct 2019 20:21:11 +0000 (13:21 -0700)
committerWilliam Tu <u9012063@gmail.com>
Thu, 17 Oct 2019 17:29:00 +0000 (10:29 -0700)
In commit 057772cf2477 the function is missing the rpl_ prefix
and the define that replaces the original function should come
after the function definition.

Fixes: 057772cf2477 ("compat: Backport nf_ct_tmpl_alloc().")
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: William Tu <u9012063@gmail.com>
datapath/linux/compat/include/net/netfilter/nf_conntrack_core.h

index 10158011fd4d89ee03030afd15e212edc4000f47..84cb09e6582771cfd4e930eb6cadbf202984bdc1 100644 (file)
@@ -7,11 +7,10 @@
 
 #include <net/netfilter/nf_conntrack_zones.h>
 
-#define nf_ct_tmpl_alloc rpl_nf_ct_tmpl_alloc
 /* Released via destroy_conntrack() */
 static inline struct nf_conn *
-nf_ct_tmpl_alloc(struct net *net, const struct nf_conntrack_zone *zone,
-                gfp_t flags)
+rpl_nf_ct_tmpl_alloc(struct net *net, const struct nf_conntrack_zone *zone,
+                    gfp_t flags)
 {
        struct nf_conn *tmpl;
 
@@ -32,6 +31,7 @@ out_free:
        kfree(tmpl);
        return NULL;
 }
+#define nf_ct_tmpl_alloc rpl_nf_ct_tmpl_alloc
 
 static void rpl_nf_ct_tmpl_free(struct nf_conn *tmpl)
 {