From d989124c02bf5662ccf638d361229bd5ea7bcd93 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 22 Dec 2021 14:26:02 -0800 Subject: broadcom-wl: Fix compilation with kernel 5.10 This adds a few fixes for compiling against Linux 5.10: 1. segment_eq() has been removed with upstream commit 428e2976a5bf7e7f5554286d7a5a33b8147b106a ("uaccess: remove segment_eq") and can use uaccess_kernel() instead 2. ioremap_nocache() is removed and is now an alias for ioremap() with upstream commit 4bdc0d676a643140bdf17dbf7eafedee3d496a3c ("remove ioremap_nocache and devm_ioremap_nocache") Signed-off-by: Florian Fainelli (cherry picked from commit cd3de51bb4a18f922a961fdeb42c1c8f1f80b425) --- package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch') diff --git a/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch b/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch index 9f4b0b01b3..5c3e72a229 100644 --- a/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch +++ b/package/kernel/broadcom-wl/patches/040-remove_last_rx_usage.patch @@ -1,6 +1,6 @@ ---- broadcom-wl-5.10.56.27.3/driver/wl_linux.c.orig 2018-01-13 18:25:14.944667645 +0100 -+++ broadcom-wl-5.10.56.27.3/driver/wl_linux.c 2018-01-13 18:25:25.836667888 +0100 -@@ -2762,7 +2762,6 @@ +--- a/driver/wl_linux.c ++++ b/driver/wl_linux.c +@@ -2762,7 +2762,6 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rx bcopy(oskb->data + D11_PHY_HDR_LEN, pdata, oskb->len - D11_PHY_HDR_LEN); skb->dev = wl->monitor; -- cgit v1.2.3