diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-11-20 18:15:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-22 15:02:52 +0100 |
commit | bd4b827cec1d4eec7a916dc4da0ca65939f80f4b (patch) | |
tree | d9fabc8177d8d331a45ddb15f5ece24039341b97 /drivers/pcmcia | |
parent | tsn: Fix build. (diff) | |
download | linux-bd4b827cec1d4eec7a916dc4da0ca65939f80f4b.tar.xz linux-bd4b827cec1d4eec7a916dc4da0ca65939f80f4b.zip |
pcmcia: hide the MAC address helpers if !NET
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>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/pcmcia_cis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pcmcia/pcmcia_cis.c b/drivers/pcmcia/pcmcia_cis.c index f650e19a315c..6bc0bc24d357 100644 --- a/drivers/pcmcia/pcmcia_cis.c +++ b/drivers/pcmcia/pcmcia_cis.c @@ -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 */ |