Skip to content

Commit

Permalink
powerpc64: Set PPC64_ELF_ABI_v[1|2] macros to 1
Browse files Browse the repository at this point in the history
Set macros to 1 so that they can be used with __is_defined().

Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/abad4868416ddfd42893f99c0cad8e5faf998095.1644834730.git.naveen.n.rao@linux.vnet.ibm.com
  • Loading branch information
rnav authored and mpe committed Mar 7, 2022
1 parent 1d4866d commit 4eeac2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/include/asm/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

#ifdef __powerpc64__
#if defined(_CALL_ELF) && _CALL_ELF == 2
#define PPC64_ELF_ABI_v2
#define PPC64_ELF_ABI_v2 1
#else
#define PPC64_ELF_ABI_v1
#define PPC64_ELF_ABI_v1 1
#endif
#endif /* __powerpc64__ */

Expand Down

0 comments on commit 4eeac2b

Please sign in to comment.