]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: avoid unused variable warning for sysctl
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Feb 2018 13:32:48 +0000 (14:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Mar 2018 18:38:22 +0000 (13:38 -0500)
commite8bd4fd319ba6420821067991637ca3406692cc3
tree96393fc1a0f61761d3ec262a2bbb2eba375ea4f4
parent75e02487e3cad9da0763e55dde35f42447fee758
net: ipv4: avoid unused variable warning for sysctl

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: 5088ad742c4f ("net: ipv4: don't allow setting net.ipv4.route.min_pmtu below 68")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c