Skip to contentSkip to conversation

prefetch() not declared in net/ipv4/route.c on s390x

PATCH In review Dan Horák 2 participants 2 messages Dec 22, 2011

Subsystems (2)
lore
Share & tools
lore

Dan Horák

author
#0 lore raw

PATCH 1/1 prefetch() not declared in net/ipv4/route.c on s390x

The recent commit (9f28a2fc0bd77511f649c0a788c7bf9a5fd04edb) to route.c breaks build on s390x because it leaves prefetch() undeclared.

net/ipv4/route.c: In function 'rt_check_expire':
net/ipv4/route.c:874:4: error: implicit declaration of function 'prefetch' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [net/ipv4/route.o] Error 1

---
 net/ipv4/route.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/ipv4/route.c +1 -0
index 252c512..85cc053 100644
@@ -91,6 +91,7 @@
 #include <linux/rcupdate.h>
 #include <linux/times.h>
 #include <linux/slab.h>
+#include <linux/prefetch.h>
 #include <net/dst.h>
 #include <net/net_namespace.h>
 #include <net/protocol.h>
Signature · 1 line
1.7.4.4
#1 lore raw
Quoted 2 lines · Dan Horák

The recent commit (9f28a2fc0bd77511f649c0a788c7bf9a5fd04edb) to route.c breaks build on s390x because it leaves prefetch() undeclared.

Yes, Stephen posted a patch few hours ago.

Thanks