From 268bb0ce3e87872cb9290c322b0d35bce230d88f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 20 May 2011 12:50:29 -0700 Subject: sanitize 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 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 Signed-off-by: Linus Torvalds --- net/core/dst.c | 1 + net/core/pktgen.c | 1 + net/core/skbuff.c | 1 + 3 files changed, 3 insertions(+) (limited to 'net/core') diff --git a/net/core/dst.c b/net/core/dst.c index 91104d35de7..0a3920bf361 100644 --- a/net/core/dst.c +++ b/net/core/dst.c @@ -19,6 +19,7 @@ #include #include #include +#include #include diff --git a/net/core/pktgen.c b/net/core/pktgen.c index aeeece72b72..6ed9e27d820 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -156,6 +156,7 @@ #include #include #include +#include #include #include #include diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 7ebeed0a877..960ea899c86 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -57,6 +57,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3