Skip to content

Commit 86ef7f9

Browse files
committed
ipconfig: Protect ic_addrservaddr with IPCONFIG_DYNAMIC.
>> net/ipv4/ipconfig.c:130:15: warning: 'ic_addrservaddr' defined but not used [-Wunused-variable] static __be32 ic_addrservaddr = NONE; /* IP Address of the IP addresses'server */ Reported-by: kbuild test robot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 92ca824 commit 86ef7f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/ipv4/ipconfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ __be32 ic_myaddr = NONE; /* My IP address */
127127
static __be32 ic_netmask = NONE; /* Netmask for local subnet */
128128
__be32 ic_gateway = NONE; /* Gateway IP address */
129129

130+
#ifdef IPCONFIG_DYNAMIC
130131
static __be32 ic_addrservaddr = NONE; /* IP Address of the IP addresses'server */
132+
#endif
131133

132134
__be32 ic_servaddr = NONE; /* Boot server IP address */
133135

0 commit comments

Comments
 (0)