From: Jeremy Fitzhardinge Date: Thu, 11 Sep 2008 08:31:48 +0000 (-0700) Subject: generic: make PFN_PHYS explicitly return phys_addr_t X-Git-Tag: v2.6.28-rc1~271^2^4~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947d0496cf3e12ebfa70b3eaf561c25403247ce9;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed