]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Fix _ALIGN_* errors due to type difference.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 8 Oct 2015 07:59:28 +0000 (13:29 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Oct 2015 21:02:25 +0000 (08:02 +1100)
commitf78f7ed72632a0794161f290b89e2cd752f55202
tree0d6fbd18c2a7f11d5112c3b78aeb68ff2abcd683
parent1b70386c99e997b359735c753ca1a27c6cf87847
powerpc: Fix _ALIGN_* errors due to type difference.

This avoid errors like

        unsigned int usize = 1 << 30;
        int size = 1 << 30;
        unsigned long addr = 64UL << 30 ;

        value = _ALIGN_DOWN(addr, usize); -> 0
        value = _ALIGN_DOWN(addr, size);  -> 0x1000000000

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/page.h
arch/powerpc/include/asm/page.h