Skip to contentSkip to conversation

net: remove exports for netdev_name_node_alt_create() and destroy

PATCH Applied Jakub Kicinski 3 participants 3 messages Mar 10, 2022 – Mar 12, 2022

Subsystems (2)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 net: remove exports for netdev_name_node_alt_create() and destroy

netdev_name_node_alt_create() and netdev_name_node_alt_destroy() are only called by rtnetlink, so no need for exports.

---
 net/core/dev.c | 2 --
 1 file changed, 2 deletions(-)
net/core/dev.c +0 -2
index ba69ddf85af6..7ed27c178a1f 100644
@@ -340,7 +340,6 @@ int netdev_name_node_alt_create(struct net_device *dev, const char *name)
 
 	return 0;
 }
-EXPORT_SYMBOL(netdev_name_node_alt_create);
 
 static void __netdev_name_node_alt_destroy(struct netdev_name_node *name_node)
 {
@@ -368,7 +367,6 @@ int netdev_name_node_alt_destroy(struct net_device *dev, const char *name)
 
 	return 0;
 }
-EXPORT_SYMBOL(netdev_name_node_alt_destroy);
 
 static void netdev_name_node_alt_flush(struct net_device *dev)
 {
Signature · 1 line
2.34.1
#2 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Thu, 10 Mar 2022 14:39:52 -0800 you wrote:

netdev_name_node_alt_create() and netdev_name_node_alt_destroy() are only called by rtnetlink, so no need for exports.

---
 net/core/dev.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- [net-next] net: remove exports for netdev_name_node_alt_create() and destroy

    https://git.kernel.org/netdev/net-next/c/2387834dd228

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html