Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f95ceceb authored by Runmin Wang's avatar Runmin Wang
Browse files

Revert "arm64: xchg: Fix compilation issue with __xchg_mb"

This reverts commit cb2ddc73.

When clang enabled for arm64 architecture inline was not
always_iniline because CONFIG_OPTIMIZE_INLINING is not enabled.
Some code depends on that behavior of online means __always_inline
and check this link [1] for more information.
net/built-in.o: In function `__xchg_mb':
arch/arm64/include/asm/cmpxchg.h:99: undefined reference to
`__compiletime_assert_99'
arch/arm64/include/asm/cmpxchg.h:99: undefined reference to
`__compiletime_assert_99

To avoid compilations issues commit cb2ddc73 ("arm64: xchg:
Fix compilation issue with __xchg_mb") was introduced.
Recently upstream community made inline as __always_inline for arm64 as
well.
So reverting our downstream solution for above compilation issue.
[1] - https://lkml.org/lkml/2017/6/13/918



Change-Id: I671f98885ede349b3c5fb679eff525c4b23a1a2f
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 90e4b68f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ __XCHG_CASE( , , mb_8, dmb ish, nop, , a, l, "memory")
#undef __XCHG_CASE

#define __XCHG_GEN(sfx)							\
static __always_inline unsigned long __xchg##sfx(unsigned long x,	\
static inline unsigned long __xchg##sfx(unsigned long x,		\
					volatile void *ptr,		\
					int size)			\
{									\