]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mm: make lowmem_page_address() use PFN_PHYS() for improved portability
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 24 May 2010 21:32:53 +0000 (14:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:02 +0000 (08:07 -0700)
commitc6f6b596a5a73e63e5e930c414375c0c389199ab
tree900d4b3a6d198edc2045511b5b8d6001755bcfbf
parent4eaf3f64397c3db3c5785eee508270d62a9fabd9
mm: make lowmem_page_address() use PFN_PHYS() for improved portability

This ensures that platforms with lowmem PAs above 32 bits work correctly
by avoiding truncating the PA during a left shift.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: Barry Song <21cnbao@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h