1
linux/drivers/net/igb
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
..
e1000_82575.c igb: Add check for invalid size to igb_get_invariants_82575() 2011-05-04 12:09:53 -07:00
e1000_82575.h igb: Add Energy Efficient Ethernet (EEE) for i350 devices. 2011-03-12 04:09:20 -08:00
e1000_defines.h igb: Add messaging for thermal sensor events on i350 devices 2011-03-14 22:26:54 -07:00
e1000_hw.h igb: Update NVM functions to work with i350 devices 2011-03-12 04:09:37 -08:00
e1000_mac.c Fix common misspellings 2011-03-31 11:26:23 -03:00
e1000_mac.h
e1000_mbx.c
e1000_mbx.h
e1000_nvm.c igb: Update NVM functions to work with i350 devices 2011-03-12 04:09:37 -08:00
e1000_nvm.h igb: Update NVM functions to work with i350 devices 2011-03-12 04:09:37 -08:00
e1000_phy.c Fix common misspellings 2011-03-31 11:26:23 -03:00
e1000_phy.h
e1000_regs.h igb: Add messaging for thermal sensor events on i350 devices 2011-03-14 22:26:54 -07:00
igb_ethtool.c igb: convert to ethtool set_phys_id 2011-05-07 03:11:57 -07:00
igb_main.c Add appropriate <linux/prefetch.h> include for prefetch users 2011-05-22 21:41:57 -07:00
igb.h net/igb/e1000/e1000e: more robust ethtool duplex/speed configuration 2011-04-29 14:03:03 -07:00
Makefile