Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH next] bonding: fix build issue
@ 2021-07-16 23:09 Mahesh Bandewar
  2021-07-17  0:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Bandewar @ 2021-07-16 23:09 UTC (permalink / raw)
  To: Netdev
  Cc: David Miller, Jakub Kicinski, Mahesh Bandewar, Mahesh Bandewar,
	Taehee Yoo, Jay Vosburgh

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
>>> 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")
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
CC: Taehee Yoo <ap420073@gmail.com>
CC: Jay Vosburgh <jay.vosburgh@canonical.com>
---
 drivers/net/bonding/bond_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index d22d78303311..31730efa7538 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -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);
-- 
2.32.0.402.g57bb445576-goog


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH next] bonding: fix build issue
  2021-07-16 23:09 [PATCH next] bonding: fix build issue Mahesh Bandewar
@ 2021-07-17  0:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-07-17  0:30 UTC (permalink / raw)
  To: Mahesh Bandewar; +Cc: netdev, davem, kuba, mahesh, ap420073, jay.vosburgh

Hello:

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

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-17  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-16 23:09 [PATCH next] bonding: fix build issue Mahesh Bandewar
2021-07-17  0:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).