Skip to content

Commit

Permalink
fs/compat.c: fix build on MIPS/s390
Browse files Browse the repository at this point in the history
The definition of PAGE_CACHE_MASK in <linux/pagemap.h> is needed to use
MAX_RW_COUNT, and on x86-64 that gets done indirectly through the
architecture header includes.  But on MIPS and s390 that doesn't happen,
and we need to make sure that fs/compat.c includes pagemap.h explicitly.

Introduced in commit 435f49a ("readv/writev: do the same
MAX_RW_COUNT truncation that read/write does").

Reported-by: Sachin Sant <[email protected]> (S390)
Reported-by: wu zhangjin <[email protected]> (MIPS)
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
lzufalcon authored and torvalds committed Oct 30, 2010
1 parent 2d10d87 commit 504b701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <linux/eventpoll.h>
#include <linux/fs_struct.h>
#include <linux/slab.h>
#include <linux/pagemap.h>

#include <asm/uaccess.h>
#include <asm/mmu_context.h>
Expand Down

0 comments on commit 504b701

Please sign in to comment.