]> git.proxmox.com Git - ovs.git/commit
compat: Fix compile warning.
authorGreg Rose <gvrose8192@gmail.com>
Thu, 12 Nov 2020 23:10:39 +0000 (15:10 -0800)
committerIlya Maximets <i.maximets@ovn.org>
Mon, 16 Nov 2020 16:47:11 +0000 (17:47 +0100)
commit42da9cbc3aea5ce33beab1f2d86dc3e175603cad
tree24d4cf1f5dca5e07be86a4c36ac202d841e5b425
parentf365b41f9dff9340e7da56aeabb8ceb18037c693
compat: Fix compile warning.

In ../compat/nf_conntrack_reasm.c nf_frags_cache_name is declared
if OVS_NF_DEFRAG6_BACKPORT is defined.  However, later in the patch
it is only used if HAVE_INET_FRAGS_WITH_FRAGS_WORK is defined and
HAVE_INET_FRAGS_RND is not defined.  This will cause a compile warning
about unused variables.

Fix it up by using the same defines that enable its use to decide
if it should be declared and avoid the compiler warning.

Fixes: 4a90b277baca ("compat: Fixup ipv6 fragmentation on 4.9.135+ kernels")
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
datapath/linux/compat/nf_conntrack_reasm.c