]> Pileus Git - ~andy/linux/commit
fixed generic page.h for non-zero PAGE_OFFSET
authorMark Salter <msalter@redhat.com>
Tue, 4 Oct 2011 13:24:15 +0000 (09:24 -0400)
committerMark Salter <msalter@redhat.com>
Thu, 6 Oct 2011 23:47:16 +0000 (19:47 -0400)
commitb7a0556e0f2d6946a57f993c6d1043cf065ccfa8
tree3aaef3ec59cff7cfb58ef6f9905792c2a5644603
parent830f5800acae17b972d264ab65fe54a7f10c1d82
fixed generic page.h for non-zero PAGE_OFFSET

asm-generic/page.h had several problems when used with a non-zero PAGE_OFFSET.
This patch adds a default ARCH_PFN_OFFSET and fixes the __va, __pa, and
pfn_valid macros to work with non-zero PAGE_OFFSETs.

Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/page.h