On 2016/04/28 07:38PM, Michael Ellerman wrote:
> We're approaching 20 locations where we need to check for ELF ABI v2.
> That's fine, except the logic is a bit awkward, because we have to check
> that _CALL_ELF is defined and then what its value is.
> 
> So check it once in asm/types.h and define PPC_ELF_ABI_v2 when ELF ABI
> v2 is detected.
> 
> We don't add explicit includes of asm/types.h because it's included
> basically everywhere via compiler.h.
> 
> Signed-off-by: Michael Ellerman <m...@ellerman.id.au>

Thanks for doing this!

Does it make sense to call this PPC64_ELF_ABI_V2 since this is 64-bit 
only, and include check for CONFIG_PPC64 as well?

Apart from that:
Acked-by: Naveen N. Rao <naveen.n....@linux.vnet.ibm.com>

- Naveen

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to