mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
[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>
This commit is contained in:
parent
d535a916cd
commit
8c92e6b0bf
@ -296,6 +296,7 @@ void irlan_eth_flow_indication(void *instance, void *sap, LOCAL_FLOW flow)
|
|||||||
*/
|
*/
|
||||||
void irlan_eth_send_gratuitous_arp(struct net_device *dev)
|
void irlan_eth_send_gratuitous_arp(struct net_device *dev)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_INET
|
||||||
struct in_device *in_dev;
|
struct in_device *in_dev;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -303,7 +304,6 @@ void irlan_eth_send_gratuitous_arp(struct net_device *dev)
|
|||||||
* is useful if we have changed access points on the same
|
* is useful if we have changed access points on the same
|
||||||
* subnet.
|
* subnet.
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_INET
|
|
||||||
IRDA_DEBUG(4, "IrLAN: Sending gratuitous ARP\n");
|
IRDA_DEBUG(4, "IrLAN: Sending gratuitous ARP\n");
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
in_dev = __in_dev_get_rcu(dev);
|
in_dev = __in_dev_get_rcu(dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user