]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
pcmcia: hide the MAC address helpers if !NET
authorJakub Kicinski <kuba@kernel.org>
Sat, 20 Nov 2021 17:15:10 +0000 (09:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 14:02:52 +0000 (14:02 +0000)
pcmcia_get_mac_from_cis is only called from networking and
recent changes made it call dev_addr_mod() which is itself
only defined if NET.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: adeef3e32146 ("net: constify netdev->dev_addr")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/pcmcia/pcmcia_cis.c

index f650e19a315cc2aac2293c93d8f32b441657b5ba..6bc0bc24d357309e80d2ed73eeb70e1e9d0ae056 100644 (file)
@@ -386,7 +386,7 @@ size_t pcmcia_get_tuple(struct pcmcia_device *p_dev, cisdata_t code,
 }
 EXPORT_SYMBOL(pcmcia_get_tuple);
 
-
+#ifdef CONFIG_NET
 /*
  * pcmcia_do_get_mac() - internal helper for pcmcia_get_mac_from_cis()
  *
@@ -431,3 +431,4 @@ int pcmcia_get_mac_from_cis(struct pcmcia_device *p_dev, struct net_device *dev)
 }
 EXPORT_SYMBOL(pcmcia_get_mac_from_cis);
 
+#endif /* CONFIG_NET */