Skip to contentSkip to conversation

f2fs: add missing pretech.h include

PATCH In review Heiko Carstens 2 participants 3 messages Dec 27, 2012 – Dec 28, 2012

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

PATCH 1/1 f2fs: add missing pretech.h include

Quoted 1 line

From aa027f06dfb5b2fd27d6f92391d8340df671e82b Mon Sep 17 00:00:00 2001

From: Heiko Carstens <[email protected]>
Date: Thu, 27 Dec 2012 15:22:27 +0100
Subject: [PATCH] f2fs: add missing pretech.h include

Fix these compile errors on s390:

fs/f2fs/data.c: In function 'read_end_io':
fs/f2fs/data.c:311:4: error: implicit declaration of function 'prefetchw' [-Werror=implicit-function-declaration] fs/f2fs/segment.c: In function 'f2fs_end_io_write':
fs/f2fs/segment.c:628:4: error: implicit declaration of function 'prefetchw' [-Werror=implicit-function-declaration]

---
 fs/f2fs/data.c    | 1 +
 fs/f2fs/segment.c | 1 +
 2 files changed, 2 insertions(+)
fs/f2fs/data.c +1 -0
index 655aeab..f5d2c62 100644
@@ -13,6 +13,7 @@
 #include <linux/buffer_head.h>
 #include <linux/mpage.h>
 #include <linux/writeback.h>
+#include <linux/prefetch.h>
 #include <linux/backing-dev.h>
 #include <linux/blkdev.h>
 #include <linux/bio.h>
fs/f2fs/segment.c +1 -0
index 1b26e4e..cc28975 100644
@@ -12,6 +12,7 @@
 #include <linux/f2fs_fs.h>
 #include <linux/bio.h>
 #include <linux/blkdev.h>
+#include <linux/prefetch.h>
 #include <linux/vmalloc.h>
 
 #include "f2fs.h"
Signature · 1 line
1.7.12.4
#1 lore raw
Quoted 4 lines · Heiko Carstens

From aa027f06dfb5b2fd27d6f92391d8340df671e82b Mon Sep 17 00:00:00 2001
From: Heiko Carstens <[email protected]>
Date: Thu, 27 Dec 2012 15:22:27 +0100
Subject: [PATCH] f2fs: add missing pretech.h include

That should have been "prefetch.h", obviously...
At least the patch is correct.

#2 lore raw

2012-12-27 (목), 15:34 +0100, Heiko Carstens:

Quoted 8 lines · Heiko Carstens
Quoted 4 lines

From aa027f06dfb5b2fd27d6f92391d8340df671e82b Mon Sep 17 00:00:00 2001
From: Heiko Carstens <[email protected]>
Date: Thu, 27 Dec 2012 15:22:27 +0100
Subject: [PATCH] f2fs: add missing pretech.h include

That should have been "prefetch.h", obviously...
At least the patch is correct.

Hi,
This was fixed by Geert Uytterhoeven before.
I'm supposed to push other bug fixes with this to linus today. Anyway, thank you very much. :)

Signature · 2 lines
Jaegeuk Kim
Samsung