On Mon, Jul 31, 2023 at 2:55 PM Daniel Xu <dxu@xxxxxxxxx> wrote: > > Before, we were getting this warning: > > net/netfilter/nf_bpf_link.c:32:1: warning: 'get_proto_defrag_hook' defined but not used [-Wunused-function] > > Guard the definition with CONFIG_NF_DEFRAG_IPV[4|6]. > > Fixes: 91721c2d02d3 ("netfilter: bpf: Support BPF_F_NETFILTER_IP_DEFRAG in netfilter link") since that commit is in bpf-next only please use [PATCH bpf-next] in the future to make sure BPF CI can test it. I've applied it after manual testing, but very much prefer the automation to do it for me.