]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
commitbd4b827cec1d4eec7a916dc4da0ca65939f80f4b
treed9fabc8177d8d331a45ddb15f5ece24039341b97
parent4dfb9982644b5bf7672fc6a0b51cf87503832b7e
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>
drivers/pcmcia/pcmcia_cis.c