]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Jul 2021 09:46:23 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Jul 2021 09:46:23 +0000 (11:46 +0200)
added patches:
bonding-fix-build-issue.patch

queue-5.10/bonding-fix-build-issue.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/bonding-fix-build-issue.patch b/queue-5.10/bonding-fix-build-issue.patch
new file mode 100644 (file)
index 0000000..c5a49ef
--- /dev/null
@@ -0,0 +1,38 @@
+From 5b69874f74cc5707edd95fcdaa757c507ac8af0f Mon Sep 17 00:00:00 2001
+From: Mahesh Bandewar <maheshb@google.com>
+Date: Fri, 16 Jul 2021 16:09:41 -0700
+Subject: bonding: fix build issue
+
+From: Mahesh Bandewar <maheshb@google.com>
+
+commit 5b69874f74cc5707edd95fcdaa757c507ac8af0f upstream.
+
+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>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/net/bonding/bond_main.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/net/bonding/bond_main.c
++++ b/drivers/net/bonding/bond_main.c
+@@ -3416,7 +3416,9 @@ static int bond_master_netdev_event(unsi
+               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);
index 28366d64315a6cc9c42ad7116d522fe449a76be3..e77a1d886774543ec2250c3e31573f5f67459f03 100644 (file)
@@ -159,3 +159,4 @@ drm-amdgpu-update-golden-setting-for-sienna_cichlid.patch
 net-dsa-mv88e6xxx-enable-serdes-rx-stats-for-topaz.patch
 net-dsa-mv88e6xxx-enable-serdes-pcs-register-dump-via-ethtool-d-on-topaz.patch
 pci-mark-amd-navi14-gpu-ats-as-broken.patch
+bonding-fix-build-issue.patch