dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/net/ixgbevf
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
..
Makefile ixgbevf: Update Version String and Copyright Notice 2010-11-16 19:26:43 -08:00
defines.h ixgbevf: Enable jumbo frame support for X540 VF 2011-02-24 02:37:18 -08:00
ethtool.c ethtool: cosmetic: Use ethtool ethtool_cmd_speed API 2011-04-29 14:03:01 -07:00
ixgbevf.h ixgbevf: remove Tx hang detection 2011-03-11 01:38:57 -08:00
ixgbevf_main.c Add appropriate <linux/prefetch.h> include for prefetch users 2011-05-22 21:41:57 -07:00
mbx.c ixgbevf: Update Version String and Copyright Notice 2010-11-16 19:26:43 -08:00
mbx.h ixgbevf: Add macvlan support in the set rx mode op 2011-05-14 17:50:44 -07:00
regs.h ixgbe: correct typo in define name 2011-03-12 04:14:28 -08:00
vf.c ixgbevf: Add macvlan support in the set rx mode op 2011-05-14 17:50:44 -07:00
vf.h ixgbevf: Add macvlan support in the set rx mode op 2011-05-14 17:50:44 -07:00