Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IRDA]: Compilation for CONFIG_INET=n case

Found this occasionally.

The CONFIG_INET=n is hardly ever set, but if it is the
irlan_eth_send_gratuitous_arp() compilation should produce a
warning about unused variable in_dev.

Too pedantic? :)

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Pavel Emelyanov and committed by
Herbert Xu
8c92e6b0 d535a916

+1 -1
+1 -1
net/irda/irlan/irlan_eth.c
··· 296 296 */ 297 297 void irlan_eth_send_gratuitous_arp(struct net_device *dev) 298 298 { 299 + #ifdef CONFIG_INET 299 300 struct in_device *in_dev; 300 301 301 302 /* ··· 304 303 * is useful if we have changed access points on the same 305 304 * subnet. 306 305 */ 307 - #ifdef CONFIG_INET 308 306 IRDA_DEBUG(4, "IrLAN: Sending gratuitous ARP\n"); 309 307 rcu_read_lock(); 310 308 in_dev = __in_dev_get_rcu(dev);