-tip: block, mm: Fix build error in mm/memcontrol.c

From: Ingo Molnar
Date: Sat Jul 11 2009 - 02:52:28 EST



Today's upstream tree build (x86, 64-bit, allyesconfig) failed with
this build error:

mm/memcontrol.c: In function âmem_cgroup_force_emptyâ:
mm/memcontrol.c:1976: error: âBLK_RW_ASYNCâ undeclared (first use in this function)
mm/memcontrol.c:1976: error: (Each undeclared identifier is reported only once
mm/memcontrol.c:1976: error: for each function it appears in.)

Due to commit:

8aa7e84: Fix congestion_wait() sync/async vs read/write confusion

Missing to include a required header file for the BLK_RW_ASYNC.

Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
mm/memcontrol.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index e2fa20d..708103d 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -25,6 +25,7 @@
#include <linux/smp.h>
#include <linux/page-flags.h>
#include <linux/backing-dev.h>
+#include <linux/blkdev.h>
#include <linux/bit_spinlock.h>
#include <linux/rcupdate.h>
#include <linux/limits.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/