]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 15:22:57 +0000 (17:22 +0200)
commitbcdb7d9ea376482abce92add6c3cba1c18c9711d
treea3459ef85f4d4715179d44d2c09cf484d0230178
parent565600028000e4007eeaed610ffe3b0e7cb2b520
net: ipv4: avoid unused variable warning for sysctl

commit 773daa3caf5d3f87fdb1ab43e9c1b367a38fa394 upstream.

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: 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>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c