Skip to content

Commit

Permalink
Fix a build error when BLOCK=n
Browse files Browse the repository at this point in the history
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
f5ff842 (Fix warnings with
!CONFIG_BLOCK).

Signed-off-by: Emil Medve <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Emil Medve authored and Jens Axboe committed Oct 29, 2007
1 parent adb4ddb commit 3a424f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/backing-dev.h>
#include <linux/pagevec.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
#include <linux/security.h>
#include <linux/syscalls.h>
#include <linux/cpuset.h>
Expand Down

0 comments on commit 3a424f2

Please sign in to comment.