Re: net/ipv4/ip_gre.c:141:22: warning: variable 'data_len' set but not used
From: Geert Uytterhoeven
Date: Fri Jan 31 2025 - 03:18:46 EST
Hi Kernel Test Roboty,
On Thu, 30 Jan 2025 at 18:55, kernel test robot <lkp@xxxxxxxxx> wrote:
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 72deda0abee6e705ae71a93f69f55e33be5bca5c
> commit: 010b430d5df556d5d232e3751ac691ba9e88c041 mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it
> date: 4 years, 3 months ago
> config: csky-randconfig-p001-20220406 (https://download.01.org/0day-ci/archive/20250131/202501310132.oGDmspPN-lkp@xxxxxxxxx/config)
> compiler: csky-linux-gcc (GCC) 12.4.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501310132.oGDmspPN-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202501310132.oGDmspPN-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> net/ipv4/ip_gre.c: In function 'ipgre_err':
> >> net/ipv4/ip_gre.c:141:22: warning: variable 'data_len' set but not used [-Wunused-but-set-variable]
> 141 | unsigned int data_len = 0;
> | ^~~~~~~~
https://lore.kernel.org/all/67956320a8ee663f2582cc75f0e8047d69da5f6a.1737371364.git.geert@xxxxxxxxxxxxxx/#t
Waiting for the merge window to close to repost...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds