[V2] powerpc: Fix _ALIGN_* errors due to type difference.

Michael Ellerman mpe at ellerman.id.au
Mon Oct 12 22:21:22 AEDT 2015


On Thu, 2015-08-10 at 07:59:28 UTC, "Aneesh Kumar K.V" wrote:
> 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 at linux.vnet.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/f78f7ed72632a0794161f290

cheers


More information about the Linuxppc-dev mailing list