From: Martin KaFai Lau <[email protected]>
Date: Tue, 15 Nov 2016 11:00:04 -0800
> gcc-6.2.1 gives the following warning:
> kernel/bpf/bpf_lru_list.c: In function
> ‘__bpf_lru_list_rotate_inactive.isra.3’:
> kernel/bpf/bpf_lru_list.c:201:28: warning: ‘next’ may be used uninitialized
> in this function [-Wmaybe-uninitialized]
>
> The "next" is currently initialized in the while() loop which must have >=1
> iterations.
>
> This patch initializes next to get rid of the compiler warning.
>
> Fixes: 3a08c2fd7634 ("bpf: LRU List")
> Reported-by: David Miller <[email protected]>
> Signed-off-by: Martin KaFai Lau <[email protected]>
Applied.