WSL2-Linux-Kernel/drivers/net/bnx2x
Paul Gortmaker c0cba59e77 drivers/net: add prefetch header 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-05-22 20:37:44 -04:00
..
Makefile
bnx2x.h bnx2x: add support for retrieving dcb peer configuration 2011-05-18 17:28:52 -04:00
bnx2x_cmn.c drivers/net: add prefetch header for prefetch users 2011-05-22 20:37:44 -04:00
bnx2x_cmn.h bnx2x: function descriptions format fixed 2011-05-05 10:44:36 -07:00
bnx2x_dcb.c bnx2x: add support for retrieving dcb peer configuration 2011-05-18 17:28:52 -04:00
bnx2x_dcb.h bnx2x: function descriptions format fixed 2011-05-05 10:44:36 -07:00
bnx2x_dump.h
bnx2x_ethtool.c bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_fw_defs.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_fw_file_hdr.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_hsi.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_init.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_init_ops.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_link.c bnx2x: function descriptions format fixed 2011-05-05 10:44:36 -07:00
bnx2x_link.h bnx2x: Fix compilation warning messages 2011-01-31 13:22:41 -08:00
bnx2x_main.c bnx2x: Allow ethtool to enable/disable loopback. 2011-05-16 13:51:45 -04:00
bnx2x_reg.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_stats.c bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00
bnx2x_stats.h bnx2x: update year to 2011 and version to 1.62.12-0 2011-05-05 10:44:35 -07:00