On Fri, 23 Oct 2020 14:43:47 +0800 Hangbin Liu wrote:
> diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
> index ec448b71bf9a..0bda77d7e6b8 100644
> --- a/net/ipv6/icmp.c
> +++ b/net/ipv6/icmp.c
> @@ -145,6 +145,7 @@ static bool is_ineligible(const struct sk_buff *skb)
> int ptr = (u8 *)(ipv6_hdr(skb) + 1) - skb->data;
> int len = skb->len - ptr;
> __u8 nexthdr = ipv6_hdr(skb)->nexthdr;
> + unsigned int offs = 0;
> __be16 frag_off;
>
> if (len < 0)
net/ipv6/icmp.c: In function ‘is_ineligible’:
net/ipv6/icmp.c:148:15: warning: unused variable ‘offs’ [-Wunused-variable]
148 | unsigned int offs = 0;
| ^~~~