Skip to contentSkip to conversation

nfs: add missing prefetch.h include

PATCH In review Heiko Carstens 2 participants 2 messages Aug 2, 2011 – Aug 3, 2011 NFS client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: add missing prefetch.h include

From: Heiko Carstens <[email protected]>

Fix this compile error on s390:

CC [M] fs/nfs/blocklayout/blocklayout.o
fs/nfs/blocklayout/blocklayout.c: In function 'bl_end_io_read':
fs/nfs/blocklayout/blocklayout.c:201:4: error: implicit declaration of function 'prefetchw'

Introduced with 9549ec01 "pnfsblock: bl_read_pagelist".

---
 fs/nfs/blocklayout/blocklayout.c |    1 +
 1 file changed, 1 insertion(+)
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"
 
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Heiko Carstens

From: Heiko Carstens <[email protected]>

Fix this compile error on s390:

Quoted 8 lines

 CC [M]  fs/nfs/blocklayout/blocklayout.o
fs/nfs/blocklayout/blocklayout.c: In function 'bl_end_io_read':
fs/nfs/blocklayout/blocklayout.c:201:4: error: implicit declaration of function 'prefetchw'

Introduced with 9549ec01 "pnfsblock: bl_read_pagelist".

M68k also needs this, so

fs/nfs/blocklayout/blocklayout.c line 41

Quoted 13 lines

---
 fs/nfs/blocklayout/blocklayout.c |    1 +

 1 file changed, 1 insertion(+)
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"

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds