From 7275a7994df6cb23c52c7ea78a45f384329545ee Mon Sep 17 00:00:00 2001 From: Emil Medve Date: Wed, 24 Oct 2007 14:18:32 +0200 Subject: [PATCH] Fix a build error when BLOCK=n mm/filemap.c: In function '__filemap_fdatawrite_range': mm/filemap.c:200: error: implicit declaration of function 'mapping_cap_writeback_dirty' This happens when we don't use/have any block devices and a NFS root filesystem is used. mapping_cap_writeback_dirty() is defined in linux/backing-dev.h which used to be provided in mm/filemap.c by linux/blkdev.h until commit ff0cf658bc0b330f84e964216fdee2a002d45c2c (Fix warnings with !CONFIG_BLOCK). Signed-off-by: Emil Medve Signed-off-by: Jens Axboe --- mm/filemap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/filemap.c b/mm/filemap.c index 5209e47b7fe39..7c8643630023d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include -- 2.39.5