From: Franck Bui-Huu Date: Thu, 19 Oct 2006 11:19:59 +0000 (+0200) Subject: [MIPS] page.h: remove __pa() usages. X-Git-Tag: v2.6.20-rc1~34^2~40^2~469^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e3b942c62f42c8d5added63305e12372b06daf;p=pandora-kernel.git [MIPS] page.h: remove __pa() usages. __pa() was used by virt_to_page() and virt_addr_valid(). These latter are used when kernel is initialised so __pa() is not appropriate, we use virt_to_phys() instead. Futhermore __pa() is going to take care of CKSEG0/XKPHYS address mix for 64 bit kernels. This makes __pa() more complex than virt_to_phys() and this extra work is not needed by virt_to_page() and virt_addr_valid(). Eventually it consolidates virt_to_phys() prototype by making its argument 'const'. this avoids some warnings that was due to some virt_to_page() usages which pass const pointer. Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed