From 02cca7dc25d254d0bdbec1594920a8178703c457 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 21 Mar 2019 11:33:29 +0000 Subject: [PATCH] bcm_sta: fix kernel 5.1-rc1 --- .../bcm_sta-0200-kernel-5.1-rc1-fix.patch | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 packages/linux-drivers/bcm_sta/patches/bcm_sta-0200-kernel-5.1-rc1-fix.patch diff --git a/packages/linux-drivers/bcm_sta/patches/bcm_sta-0200-kernel-5.1-rc1-fix.patch b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0200-kernel-5.1-rc1-fix.patch new file mode 100644 index 0000000000..09b3329d16 --- /dev/null +++ b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0200-kernel-5.1-rc1-fix.patch @@ -0,0 +1,68 @@ +From aa1fc45ace58d802d038857b6fed8af9d771fbcc Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 18 Mar 2019 16:29:45 +0000 +Subject: [PATCH] get rid of legacy 'get_ds()' function + +https://github.com/torvalds/linux/commit/736706bee3298208343a76096370e4f6a5c55915 +--- + x86-32/src/wl/sys/wl_cfg80211_hybrid.c | 2 +- + x86-32/src/wl/sys/wl_iw.c | 2 +- + x86-64/src/wl/sys/wl_cfg80211_hybrid.c | 2 +- + x86-64/src/wl/sys/wl_iw.c | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/x86-32/src/wl/sys/wl_cfg80211_hybrid.c b/x86-32/src/wl/sys/wl_cfg80211_hybrid.c +index 7b606e0..51c81bc 100644 +--- a/x86-32/src/wl/sys/wl_cfg80211_hybrid.c ++++ b/x86-32/src/wl/sys/wl_cfg80211_hybrid.c +@@ -450,7 +450,7 @@ wl_dev_ioctl(struct net_device *dev, u32 cmd, void *arg, u32 len) + ifr.ifr_data = (caddr_t)&ioc; + + fs = get_fs(); +- set_fs(get_ds()); ++ set_fs(KERNEL_DS); + #if defined(WL_USE_NETDEV_OPS) + err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); + #else +diff --git a/x86-32/src/wl/sys/wl_iw.c b/x86-32/src/wl/sys/wl_iw.c +index c4c610b..9c3c74e 100644 +--- a/x86-32/src/wl/sys/wl_iw.c ++++ b/x86-32/src/wl/sys/wl_iw.c +@@ -117,7 +117,7 @@ dev_wlc_ioctl( + ifr.ifr_data = (caddr_t) &ioc; + + fs = get_fs(); +- set_fs(get_ds()); ++ set_fs(KERNEL_DS); + #if defined(WL_USE_NETDEV_OPS) + ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); + #else +diff --git a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c +index 7b606e0..51c81bc 100644 +--- a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c ++++ b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c +@@ -450,7 +450,7 @@ wl_dev_ioctl(struct net_device *dev, u32 cmd, void *arg, u32 len) + ifr.ifr_data = (caddr_t)&ioc; + + fs = get_fs(); +- set_fs(get_ds()); ++ set_fs(KERNEL_DS); + #if defined(WL_USE_NETDEV_OPS) + err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); + #else +diff --git a/x86-64/src/wl/sys/wl_iw.c b/x86-64/src/wl/sys/wl_iw.c +index c4c610b..9c3c74e 100644 +--- a/x86-64/src/wl/sys/wl_iw.c ++++ b/x86-64/src/wl/sys/wl_iw.c +@@ -117,7 +117,7 @@ dev_wlc_ioctl( + ifr.ifr_data = (caddr_t) &ioc; + + fs = get_fs(); +- set_fs(get_ds()); ++ set_fs(KERNEL_DS); + #if defined(WL_USE_NETDEV_OPS) + ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); + #else +-- +2.14.1 +