[lkml]   [2012]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH -next] fs: fix fs/fs-writeback.c build error
From: Randy Dunlap <>

In linux-next, fs/fs-writeback.c no longer #includes <linux/buffer_head.h>,
which #included <linux/pagemap.h>, so add that latter header file to
<linux/writeback.h> to fix the build error:

fs/fs-writeback.c:510:11: error: 'PAGE_CACHE_SHIFT' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <>
include/linux/writeback.h | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20120105.orig/include/linux/writeback.h
+++ linux-next-20120105/include/linux/writeback.h
@@ -6,6 +6,7 @@

#include <linux/sched.h>
#include <linux/fs.h>
+#include <linux/pagemap.h>

DECLARE_PER_CPU(int, dirty_throttle_leaks);

 \ /
  Last update: 2012-01-06 23:09    [W:0.049 / U:8.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site