aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2025-02-04 21:36:54 +0000
committerJakub Kicinski <[email protected]>2025-02-06 02:48:45 +0000
commit50f37fc2a39c4a8cc4813629b4cf239b71c6097d (patch)
treed9040ce8463ecdf1e17d70e49e5ccabb8365ba6a /drivers/fpga/altera-fpga2sdram.c
parentr8169: don't scan PHY addresses > 0 (diff)
downloadkernel-50f37fc2a39c4a8cc4813629b4cf239b71c6097d.tar.gz
kernel-50f37fc2a39c4a8cc4813629b4cf239b71c6097d.zip
ipv4: ip_gre: Fix set but not used warning in ipgre_err() if IPv4-only
if CONFIG_NET_IPGRE is enabled, but CONFIG_IPV6 is disabled: net/ipv4/ip_gre.c: In function ‘ipgre_err’: net/ipv4/ip_gre.c:144:22: error: variable ‘data_len’ set but not used [-Werror=unused-but-set-variable] 144 | unsigned int data_len = 0; | ^~~~~~~~ Fix this by moving all data_len processing inside the IPV6-only section that uses its result. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/d09113cfe2bfaca02f3dddf832fb5f48dd20958b.1738704881.git.geert@linux-m68k.org Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions