Skip to contentSkip to conversation

bonding: fix build issue

PATCH Applied Mahesh Bandewar 2 participants 2 messages Jul 16, 2021 – Jul 17, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding: fix build issue

The commit 9a5605505d9c (" bonding: Add struct bond_ipesc to manage SA") is causing following build error when XFRM is not selected in kernel config.

lld: error: undefined symbol: xfrm_dev_state_flush

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by bond_main.c:3453 (drivers/net/bonding/bond_main.c:3453)
net/bonding/bond_main.o:(bond_netdev_event) in archive drivers/built-in.a

Fixes 9a5605505d9c (" bonding: Add struct bond_ipesc to manage SA")
CC Taehee Yoo <[email protected]>
CC Jay Vosburgh <[email protected]>
---
 drivers/net/bonding/bond_main.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/bonding/bond_main.c +2 -0
index d22d78303311..31730efa7538 100644
@@ -3450,7 +3450,9 @@ static int bond_master_netdev_event(unsigned long event,
 		return bond_event_changename(event_bond);
 	case NETDEV_UNREGISTER:
 		bond_remove_proc_entry(event_bond);
+#ifdef CONFIG_XFRM_OFFLOAD
 		xfrm_dev_state_flush(dev_net(bond_dev), bond_dev, true);
+#endif /* CONFIG_XFRM_OFFLOAD */
 		break;
 	case NETDEV_REGISTER:
 		bond_create_proc_entry(event_bond);
Signature · 1 line
2.32.0.402.g57bb445576-goog
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 8 lines · On Fri, 16 Jul 2021 16:09:41 -0700 you wrote:

The commit 9a5605505d9c (" bonding: Add struct bond_ipesc to manage SA") is causing following build error when XFRM is not selected in kernel config.

lld: error: undefined symbol: xfrm_dev_state_flush

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

referenced by bond_main.c:3453 (drivers/net/bonding/bond_main.c:3453)
net/bonding/bond_main.o:(bond_netdev_event) in archive drivers/built-in.a

[...]

Here is the summary with links:
- [next] bonding: fix build issue

    https://git.kernel.org/netdev/net/c/5b69874f74cc

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html