Skip to contentSkip to conversation

pcmcia: hide the MAC address helpers if !NET

PATCH Applied Jakub Kicinski 2 participants 2 messages Nov 20, 2021 – Nov 22, 2021

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 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.

Fixes adeef3e32146 ("net: constify netdev->dev_addr")
---
 drivers/pcmcia/pcmcia_cis.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pcmcia/pcmcia_cis.c +2 -1
index f650e19a315c..6bc0bc24d357 100644
@@ -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
#1 lore raw
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_cis is only called from networking and recent changes made it call dev_addr_mod() which is itself only defined if NET.

Fixes adeef3e32146 ("net: constify netdev->dev_addr")

[...]

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