]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
generic: make PFN_PHYS explicitly return phys_addr_t
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 11 Sep 2008 08:31:48 +0000 (01:31 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Sep 2008 15:24:26 +0000 (17:24 +0200)
commit947d0496cf3e12ebfa70b3eaf561c25403247ce9
treef2f77730b77c50735669dca5ff42afee69463d0e
parent600715dcdf567c86f8b2c6173fcfb4b873e25a19
generic: make PFN_PHYS explicitly return phys_addr_t

PFN_PHYS, as its name suggests, turns a pfn into a physical address.
However, it is a macro which just operates on its argument without
modifying its type.  pfns are typed unsigned long, but an unsigned
long may not be long enough to hold a physical address (32-bit systems
with more than 32 bits of physcial address).

Make sure we cast to phys_addr_t to return a complete result.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/m32r/mm/discontig.c
include/asm-x86/xen/page.h
include/linux/pfn.h