Skip to contentSkip to conversation

nfs:include <linux/prefetch.h> to fix compiling error

PATCH In review Wanlong Gao 2 participants 2 messages Aug 19, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs:include <linux/prefetch.h> to fix compiling error

From: Wanlong Gao <[email protected]>

fs/nfs/blocklayout/blocklayout.c: In function 'bl_end_io_read':
fs/nfs/blocklayout/blocklayout.c:201:4: error: implicit declaration of function 'prefetchw'
make[4]: *** [fs/nfs/blocklayout/blocklayout.o] Error 1 make[3]: *** [fs/nfs/blocklayout] Error 2
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2

---
 fs/nfs/blocklayout/blocklayout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/nfs/blocklayout/blocklayout.c +1 -0
index e56564d..9561c8f 100644
@@ -36,6 +36,7 @@
 #include <linux/namei.h>
 #include <linux/bio.h>		/* struct bio */
 #include <linux/buffer_head.h>	/* various write calls */
+#include <linux/prefetch.h>
 
 #include "blocklayout.h"
 
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 20 lines · Wanlong Gao

From: Wanlong Gao <[email protected]>

fs/nfs/blocklayout/blocklayout.c: In function 'bl_end_io_read':
fs/nfs/blocklayout/blocklayout.c:201:4: error: implicit declaration of function 'prefetchw'
make[4]: *** [fs/nfs/blocklayout/blocklayout.o] Error 1 make[3]: *** [fs/nfs/blocklayout] Error 2
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2

---
 fs/nfs/blocklayout/blocklayout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/nfs/blocklayout/blocklayout.c +0 -0
index e56564d..9561c8f 100644

fs/nfs/blocklayout/blocklayout.c line 42

Quoted 7 lines
fs/nfs/blocklayout/blocklayout.c +1 -0
@@ -36,6 +36,7 @@
 #include <linux/namei.h>
 #include <linux/bio.h>		/* struct bio */
 #include <linux/buffer_head.h>	/* various write calls */
+#include <linux/prefetch.h>
 
 #include "blocklayout.h"
 

A similar patch has already been merged upstream. See commit 88c9e42196285a7c573e2abda11a4b5037c669bc (nfs: add missing prefetch.h include).

Trond

Signature · 6 lines
Trond Myklebust
Linux NFS client maintainer

NetApp
[email protected]
www.netapp.com