summaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-12-12 12:26:25 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-12-12 12:27:23 +0100
commitcec3f0ed7de78c02ac4bc719a95915367d68c778 (patch)
tree8dbfcd3749201ff2ae663e203d3a8a8e5b6097e1 /net/wireless/reg.c
parent70e71ca0af244f48a5dcf56dc435243792e3a495 (diff)
downloadlinux-cec3f0ed7de78c02ac4bc719a95915367d68c778.tar.gz
linux-cec3f0ed7de78c02ac4bc719a95915367d68c778.tar.bz2
linux-cec3f0ed7de78c02ac4bc719a95915367d68c778.zip
cfg80211: use __force __rcu to suppress sparse warning
The code assigns a constant value (a pointer to a static variable) to an RCU pointer, which results in a sparse warning: reg.c:112:10: warning: cast adds address space to expression (<asn:4>) Suppress this warning by using __force. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 47be6163381c..d83480b6efde 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -109,7 +109,7 @@ static struct regulatory_request core_request_world = {
* protected by RTNL (and can be accessed with RCU protection)
*/
static struct regulatory_request __rcu *last_request =
- (void __rcu *)&core_request_world;
+ (void __force __rcu *)&core_request_world;
/* To trigger userspace events */
static struct platform_device *reg_pdev;