From: Dave Hansen Date: Tue, 9 Dec 2008 08:21:35 +0000 (+0000) Subject: powerpc/mm: Make careful_allocation() return virtual addrs X-Git-Tag: v2.6.29-rc1~50^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be210fd664b07531cb238bafb453a2a54c2a7a8;p=pandora-kernel.git powerpc/mm: Make careful_allocation() return virtual addrs Since we memset() the result in both of the uses here, just make careful_alloc() return a virtual address. Also, add a separate variable to store the physial address that comes back from the lmb_alloc() functions. This makes it less likely that someone will screw it up forgetting to convert before returning since the vaddr is always in a void* and the paddr is always in an unsigned long. I admit this is arbitrary since one of its users needs a paddr and one a vaddr, but it does remove a good number of casts. Signed-off-by: Dave Hansen Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed