aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch
new file mode 100644
index 00000000..aab1f2c3
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0580-drivers-net-remove-net-busy_poll.h-inclusion-when-no.patch
@@ -0,0 +1,35 @@
+From 0fe5a20228ee38228ce3d5244c716c5225fef4f5 Mon Sep 17 00:00:00 2001
+From: Eric Dumazet <edumazet@google.com>
+Date: Thu, 25 Oct 2018 06:42:12 -0700
+Subject: [PATCH 0580/2940] drivers: net: remove <net/busy_poll.h> inclusion
+ when not needed
+
+Drivers using generic NAPI interface no longer need to include
+<net/busy_poll.h>, since busy polling was moved to core networking
+stack long ago.
+
+See commit 79e7fff47b7b ("net: remove support for per driver
+ndo_busy_poll()") for reference.
+
+Signed-off-by: Eric Dumazet <edumazet@google.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+---
+ drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+index d96a84a62d78..0cc911f928b1 100644
+--- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
++++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+@@ -119,7 +119,6 @@
+ #include <linux/tcp.h>
+ #include <linux/if_vlan.h>
+ #include <linux/interrupt.h>
+-#include <net/busy_poll.h>
+ #include <linux/clk.h>
+ #include <linux/if_ether.h>
+ #include <linux/net_tstamp.h>
+--
+2.17.1
+