Skip to content

Commit

Permalink
compat: Add missing inline keyword
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
gvrose8192 authored and blp committed Nov 20, 2019
1 parent afc0c37 commit 89a84ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rpl_nf_ct_tmpl_alloc(struct net *net, const struct nf_conntrack_zone *zone,
}
#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);
Expand Down

0 comments on commit 89a84ca

Please sign in to comment.