OSDN Git Service

cfg80211: use __force __rcu to suppress sparse warning
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Dec 2014 11:26:25 +0000 (12:26 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Dec 2014 11:27:23 +0000 (12:27 +0100)
commitcec3f0ed7de78c02ac4bc719a95915367d68c778
tree8dbfcd3749201ff2ae663e203d3a8a8e5b6097e1
parent70e71ca0af244f48a5dcf56dc435243792e3a495
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>
net/wireless/reg.c