From: Emil Medve Date: Wed, 24 Oct 2007 12:18:32 +0000 (+0200) Subject: Fix a build error when BLOCK=n X-Git-Tag: v2.6.24-rc2~103^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3a424f2d56613acfb9e583ec9c85a2be3e3af028;p=~emulex%2Finfiniband.git 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 f5ff8422bbdd59f8c1f699df248e1b7a11073027 (Fix warnings with !CONFIG_BLOCK). Signed-off-by: Emil Medve Signed-off-by: Jens Axboe --- diff --git a/mm/filemap.c b/mm/filemap.c index 5209e47b7fe..7c864363002 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include