]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] headers_check: fix userspace build of asm-mips/page.h
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 13 Sep 2006 03:36:06 +0000 (20:36 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 13 Sep 2006 14:32:16 +0000 (07:32 -0700)
commit7ebc460b248e361c4c5147f43612aa3f103a38a3
tree67bf4deebf807ee939ad5f91491c2e1b312e6e62
parentaa5320a7ae741ab906815cb5d1857c78455aaba8
[PATCH] headers_check: fix userspace build of asm-mips/page.h

MIPS asm/page.h unconditionally includes <asm-generic/memory_model.h>, which
doesn't exist in userspace.  Move an #endif /* __KERNEL__ */ down a few lines
to prevent that.

Also, remove the broken definition of PAGE_SIZE which is never going to be
correct -- in the absence of PAGE_SIZE, non-broken userspace will fall back to
using sysconf() or getpagesize() instead.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-mips/page.h