pcmcia: hide the MAC address helpers if !NET
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 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 <[email protected]>
Fixes adeef3e32146 ("net: constify netdev->dev_addr")
Signed-off-by Jakub Kicinski <[email protected]>
--- drivers/pcmcia/pcmcia_cis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pcmcia/pcmcia_cis.c +2 -1
@@ -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 */
Signature · 1 line
2.31.1
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 9 lines · On Sat, 20 Nov 2021 09:15:10 -0800 you wrote:
pcmcia_get_mac_from_cisis only called from networking and recent changes made it calldev_addr_mod()which is itself only defined if NET.Reported-by kernel test robot <[email protected]>Fixes adeef3e32146 ("net: constify netdev->dev_addr")Signed-off-by Jakub Kicinski <[email protected]>[...]
Here is the summary with links:
- [net-next] pcmcia: hide the MAC address helpers if !NET
https://git.kernel.org/netdev/net-next/c/bd4b827cec1d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html