vlan: Fix build error wth vlan_get_encap_level()
authorVlad Yasevich <vyasevic@redhat.com>
Tue, 20 May 2014 14:59:26 +0000 (10:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 May 2014 15:24:26 +0000 (11:24 -0400)
commite1618d461ca18d40f9c3ef70598abb72e75d27ae
treeaa6ef19b4b6c2d854ccbd09663b8e404aa68f45d
parent4f337ed5c014752b000f593182fdcfa3ecf0d166
vlan: Fix build error wth vlan_get_encap_level()

The new function vlan_get_encap_level() uses vlan_dev_priv()
which is only conditionally avaialble when VLAN support is
enabled.  Make vlan_get_encap_level() conditionally available
as well.

Fixes: 44a4085538c8 ("bonding: Fix stacked device detection in arp monitoring")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h