WSL2-Linux-Kernel/drivers/block/drbd
Paul Gortmaker 70c7160619 Add appropriate <linux/prefetch.h> include for prefetch users
After discovering that wide use of prefetch on modern CPUs
could be a net loss instead of a win, net drivers which were
relying on the implicit inclusion of prefetch.h via the list
headers showed up in the resulting cleanup fallout.  Give
them an explicit include via the following $0.02 script.

 =========================================
 #!/bin/bash
 MANUAL=""
 for i in `git grep -l 'prefetch(.*)' .` ; do
 	grep -q '<linux/prefetch.h>' $i
 	if [ $? = 0 ] ; then
 		continue
 	fi

 	(	echo '?^#include <linux/?a'
 		echo '#include <linux/prefetch.h>'
 		echo .
 		echo w
 		echo q
 	) | ed -s $i > /dev/null 2>&1
 	if [ $? != 0 ]; then
 		echo $i needs manual fixup
 		MANUAL="$i $MANUAL"
 	fi
 done
 echo ------------------- 8\<----------------------
 echo vi $MANUAL
 =========================================

Signed-off-by: Paul <paul.gortmaker@windriver.com>
[ Fixed up some incorrect #include placements, and added some
  non-network drivers and the fib_trie.c case    - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-05-22 21:41:57 -07:00
..
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00
drbd_actlog.c Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_bitmap.c drbd: fix up merge error 2011-03-28 07:42:58 -07:00
drbd_int.h Add appropriate <linux/prefetch.h> include for prefetch users 2011-05-22 21:41:57 -07:00
drbd_main.c Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_nl.c Merge branch 'for-2.6.39/drivers' of git://git.kernel.dk/linux-2.6-block 2011-03-27 20:02:07 -07:00
drbd_proc.c drbd: allow petabyte storage on 64bit arch 2011-03-10 11:43:24 +01:00
drbd_receiver.c Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_req.c drbd: drop code present under #ifdef which is relevant to 2.6.28 and below 2011-03-10 11:48:21 +01:00
drbd_req.h drbd: Implemented real timeout checking for request processing time 2011-03-10 11:48:16 +01:00
drbd_strings.c drbd: Rename enum drbd_state_ret_codes to enum drbd_state_rv 2011-03-10 11:36:18 +01:00
drbd_vli.h Fix common misspellings 2011-03-31 11:26:23 -03:00
drbd_worker.c drbd: Fixed handling of read errors on a 'VerifyS' node 2011-03-10 11:48:20 +01:00
drbd_wrappers.h drbd: Get rid of unnecessary macros (2) 2011-03-10 11:36:15 +01:00