linux/drivers/net/wireless/intel/iwlwifi/mvm
Mark Rutland 6aa7de0591 locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE()
Please do not apply this to mainline directly, instead please re-run the
coccinelle script shown below and apply its output.

For several reasons, it is desirable to use {READ,WRITE}_ONCE() in
preference to ACCESS_ONCE(), and new code is expected to use one of the
former. So far, there's been no reason to change most existing uses of
ACCESS_ONCE(), as these aren't harmful, and changing them results in
churn.

However, for some features, the read/write distinction is critical to
correct operation. To distinguish these cases, separate read/write
accessors must be used. This patch migrates (most) remaining
ACCESS_ONCE() instances to {READ,WRITE}_ONCE(), using the following
coccinelle script:

----
// Convert trivial ACCESS_ONCE() uses to equivalent READ_ONCE() and
// WRITE_ONCE()

// $ make coccicheck COCCI=/home/mark/once.cocci SPFLAGS="--include-headers" MODE=patch

virtual patch

@ depends on patch @
expression E1, E2;
@@

- ACCESS_ONCE(E1) = E2
+ WRITE_ONCE(E1, E2)

@ depends on patch @
expression E;
@@

- ACCESS_ONCE(E)
+ READ_ONCE(E)
----

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: davem@davemloft.net
Cc: linux-arch@vger.kernel.org
Cc: mpe@ellerman.id.au
Cc: shuah@kernel.org
Cc: snitzer@redhat.com
Cc: thor.thayer@linux.intel.com
Cc: tj@kernel.org
Cc: viro@zeniv.linux.org.uk
Cc: will.deacon@arm.com
Link: http://lkml.kernel.org/r/1508792849-3115-19-git-send-email-paulmck@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-10-25 11:01:08 +02:00
..
binding.c iwlwifi: mvm: memset binding before setting values 2017-04-25 23:06:51 +03:00
coex.c iwlwifi: mvm: support new Coex firmware API 2017-08-18 16:03:40 +03:00
constants.h iwlwifi: mvm: change open and close criteria of a BA session 2017-08-18 17:24:04 +03:00
d3.c iwlwifi: mvm: fix wowlan resume failed to load INIT ucode 2017-09-08 11:25:31 +03:00
debugfs-vif.c iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00
debugfs.c iwlwifi: move BT_MBOX_PRINT macro to common header 2017-08-18 16:10:44 +03:00
debugfs.h
fw-api.h iwlwifi: mvm: use firmware LED command where applicable 2017-08-09 09:15:32 +03:00
fw.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git 2017-08-24 14:47:42 +03:00
led.c iwlwifi: mvm: only send LEDS_CMD when the FW supports it 2017-09-07 19:40:09 +03:00
mac80211.c iwlwifi: mvm: do not print security error in monitor mode 2017-10-06 13:59:44 +03:00
mac-ctxt.c iwlwifi: mvm: support new beacon template command 2017-08-09 21:14:41 +03:00
Makefile iwlwifi: refactor firmware debug code 2017-08-01 12:41:43 +03:00
mvm.h iwlwifi: nvm: set the correct offsets to 3168 series 2017-10-06 13:59:44 +03:00
nvm.c iwlwifi: nvm: set the correct offsets to 3168 series 2017-10-06 13:59:44 +03:00
offloading.c
ops.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
phy-ctxt.c iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00
power.c iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00
quota.c
rs.c iwlwifi: mvm: change state when queueing agg start work 2017-09-08 11:43:38 +03:00
rs.h iwlwifi: mvm: support aggs of 64 frames in A000 family 2017-06-29 13:26:25 +03:00
rx.c iwlwifi: mvm: do not print security error in monitor mode 2017-10-06 13:59:44 +03:00
rxmq.c iwlwifi: mvm: do not print security error in monitor mode 2017-10-06 13:59:44 +03:00
scan.c iwlwifi: mvm: set status before calling iwl_mvm_send_cmd_status() 2017-09-08 11:50:30 +03:00
sf.c iwlwifi: mvm: prepare for station count change 2017-04-19 22:20:51 +03:00
sta.c iwlwifi: mvm: initialize status in iwl_mvm_add_int_sta_common() 2017-09-08 11:49:15 +03:00
sta.h iwlwifi: mvm: change state when queueing agg start work 2017-09-08 11:43:38 +03:00
tdls.c iwlwifi: mvm: use schedule_delayed_work() 2017-06-05 23:34:26 +03:00
testmode.h
time-event.c iwlwifi: mvm: remove session protection to allow channel switch 2017-08-18 16:10:43 +03:00
time-event.h
tof.c iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00
tof.h iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00
tt.c iwlwifi: mvm: return -ENODATA when reading the temperature with the FW down 2017-10-06 13:59:44 +03:00
tx.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
utils.c iwlwifi: reorganize firmware API 2017-08-01 12:41:43 +03:00