Home
last modified time | relevance | path

Searched hist:"289 e1f4e9e4a09c73a1c0152bb93855ea351ccda" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Dipconfig.cdiff 289e1f4e9e4a09c73a1c0152bb93855ea351ccda Sun May 13 21:48:30 CEST 2018 Anders Roxell <anders.roxell@linaro.org> net: ipv4: ipconfig: fix unused variable

When CONFIG_PROC_FS isn't set, variable ipconfig_dir isn't used.
net/ipv4/ipconfig.c:167:31: warning: ‘ipconfig_dir’ defined but not used [-Wunused-variable]
static struct proc_dir_entry *ipconfig_dir;
^~~~~~~~~~~~
Move the declaration of ipconfig_dir inside the CONFIG_PROC_FS ifdef to
fix the warning.

Fixes: c04d2cb2009f ("ipconfig: Write NTP server IPs to /proc/net/ipconfig/ntp_servers")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>