sanitize <linux/prefetch.h> usage
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 19:50:29 +0000 (12:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 19:50:29 +0000 (12:50 -0700)
commit268bb0ce3e87872cb9290c322b0d35bce230d88f
treec8331ade4a3e24fc589c4eb62731bc2312d35333
parent257313b2a87795e07a0bdf58d0fffbdba8b31051
sanitize <linux/prefetch.h> usage

Commit e66eed651fd1 ("list: remove prefetching from regular list
iterators") removed the include of prefetch.h from list.h, which
uncovered several cases that had apparently relied on that rather
obscure header file dependency.

So this fixes things up a bit, using

   grep -L linux/prefetch.h $(git grep -l '[^a-z_]prefetchw*(' -- '*.[ch]')
   grep -L 'prefetchw*(' $(git grep -l 'linux/prefetch.h' -- '*.[ch]')

to guide us in finding files that either need <linux/prefetch.h>
inclusion, or have it despite not needing it.

There are more of them around (mostly network drivers), but this gets
many core ones.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
35 files changed:
arch/ia64/hp/common/sba_iommu.c
arch/ia64/mm/fault.c
arch/powerpc/lib/sstep.c
arch/sh/kernel/cpu/sh4/sq.c
arch/x86/include/asm/uaccess.h
arch/x86/include/asm/uaccess_32.h
arch/x86/include/asm/uaccess_64.h
arch/x86/mm/fault.c
drivers/misc/sgi-gru/grufault.c
drivers/misc/sgi-gru/grumain.c
drivers/net/acenic.c
drivers/net/ehea/ehea_main.c
drivers/staging/pohmelfs/inode.c
drivers/usb/gadget/goku_udc.c
drivers/usb/gadget/imx_udc.c
drivers/usb/gadget/omap_udc.c
drivers/usb/gadget/pxa25x_udc.c
drivers/usb/gadget/pxa27x_udc.c
drivers/usb/host/isp1362-hcd.c
drivers/usb/host/sl811-hcd.c
drivers/video/udlfb.c
fs/btrfs/extent_io.c
fs/dcache.c
fs/logfs/dev_bdev.c
include/asm-generic/xor.h
kernel/rcutiny.c
kernel/rcutree.c
mm/page_alloc.c
mm/prio_tree.c
mm/slab.c
mm/vmscan.c
net/core/dst.c
net/core/pktgen.c
net/core/skbuff.c
tools/perf/util/include/linux/list.h