]> git.baikalelectronics.ru Git - kernel.git/commit
lib/mpi: Fix building for powerpc with clang
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 13 Apr 2020 19:50:42 +0000 (12:50 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Apr 2020 03:14:59 +0000 (13:14 +1000)
commitc70e6342f4401d761cde115080f672ab8c207092
tree635b868bf2d3a727c7277daf3b98c39dd4fceb41
parent8ef582a205a3497b8d3a80400b3e1908fc443161
lib/mpi: Fix building for powerpc with clang

0day reports over and over on an powerpc randconfig with clang:

lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a
inline asm context requiring an l-value: remove the cast or build with
-fheinous-gnu-extensions

Remove the superfluous casts, which have been done previously for x86
and arm32 in commit bcc6df6ad70b ("lib/mpi: fix build with clang") and
commit 71ce97f94d4f ("lib/mpi/longlong.h: fix building with 32-bit
x86").

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://github.com/ClangBuiltLinux/linux/issues/991
Link: https://lore.kernel.org/r/20200413195041.24064-1-natechancellor@gmail.com
lib/mpi/longlong.h