]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/pci: Fix return type of BUID_{HI,LO} macros
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 15 Sep 2010 08:13:19 +0000 (08:13 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Oct 2010 05:19:20 +0000 (16:19 +1100)
commitdda804ad4023cc202466c46fcfcc163131953838
tree6b048667ed55f3e6164076c1d9caa4636dd4b865
parent8032214346c0c892e859cf6eee6c8ba305cbfe78
powerpc/pci: Fix return type of BUID_{HI,LO} macros

BUID_HI and BUID_LO are used to pass data to call_rtas, which expects
ints or u32s. But the macro doesn't cast the return, so the result is
still u64. Use the upper_32_bits and lower_32_bits macros that have been
added to kernel.h.

Found by getting printf format errors trying to debug print the args, no
actual code change for 64 bit kernels where the macros are actually
used.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Linas Vepstas <linasvepstas@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ppc-pci.h