Re: [PATCH] net: ipv4: avoid unused variable warning for sysctl

2018-03-01 Thread David Miller
From: Arnd Bergmann Date: Wed, 28 Feb 2018 14:32:48 +0100 > The newly introudced ip_min_valid_pmtu variable is only used when > CONFIG_SYSCTL is set: > > net/ipv4/route.c:135:12: error: 'ip_min_valid_pmtu' defined but not used > [-Werror=unused-variable] > > This moves it to the other variable

Re: [PATCH] net: ipv4: avoid unused variable warning for sysctl

2018-02-28 Thread Sabrina Dubroca
2018-02-28, 14:32:48 +0100, Arnd Bergmann wrote: > The newly introudced ip_min_valid_pmtu variable is only used when > CONFIG_SYSCTL is set: > > net/ipv4/route.c:135:12: error: 'ip_min_valid_pmtu' defined but not used > [-Werror=unused-variable] > > This moves it to the other variables like it,

[PATCH] net: ipv4: avoid unused variable warning for sysctl

2018-02-28 Thread Arnd Bergmann
The newly introudced ip_min_valid_pmtu variable is only used when CONFIG_SYSCTL is set: net/ipv4/route.c:135:12: error: 'ip_min_valid_pmtu' defined but not used [-Werror=unused-variable] This moves it to the other variables like it, to avoid the harmless warning. Fixes: c7272c2f1229 ("net: ipv4