Re: [PATCH] net: ipv4: ipconfig: fix unused variable

2018-05-13 Thread David Miller
From: Anders Roxell Date: Sun, 13 May 2018 21:48:30 +0200 > 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; >

[PATCH] net: ipv4: ipconfig: fix unused variable

2018-05-13 Thread Anders Roxell
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 CON