1 From 16e51cb83f9fa1717383c9d67f5531df7348347c Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robert.marko@sartura.hr>
3 Date: Wed, 30 Mar 2022 19:51:56 +0200
4 Subject: [PATCH] mwlwifi: replace get/set_fs() calls
6 Since kernel 5.9 the get/set_fs() call implementation have started to get
7 dropped from individual architectures, ARM64 one got dropped in 5.11.
9 Replace the get/set_fs() calls with force_uaccess_begin/end() to allow
10 compiling on newer kernels.
11 There is no need to add kernel version checks as the replacement functions
12 are available since kernel 5.9.
14 Signed-off-by: Robert Marko <robert.marko@sartura.hr>
16 hif/pcie/pcie.c | 5 ++---
17 1 file changed, 2 insertions(+), 3 deletions(-)
21 @@ -1293,8 +1293,7 @@ static void pcie_bf_mimo_ctrl_decode(str
22 char *buf = &str_buf[0];
27 + oldfs = force_uaccess_begin();
29 buf += sprintf(buf, "\nMAC: %pM\n", bf_mimo_ctrl->rec_mac);
30 buf += sprintf(buf, "SU_0_MU_1: %d\n", bf_mimo_ctrl->type);
31 @@ -1314,7 +1313,7 @@ static void pcie_bf_mimo_ctrl_decode(str
32 filename, (unsigned int)fp_data);
36 + force_uaccess_end(oldfs);
39 static void pcie_process_account(struct ieee80211_hw *hw)