android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nathan Chancellor 16d0068dbb
UPSTREAM: crypto: arm/curve25519 - Move '.fpu' after '.arch'
Debian's clang carries a patch that makes the default FPU mode
'vfp3-d16' instead of 'neon' for 'armv7-a' to avoid generating NEON
instructions on hardware that does not support them:

https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/raw/5a61ca6f21b4ad8c6ac4970e5ea5a7b5b4486d22/debian/patches/clang-arm-default-vfp3-on-armv7a.patch
https://bugs.debian.org/841474
https://bugs.debian.org/842142
https://bugs.debian.org/914268

This results in the following build error when clang's integrated
assembler is used because the '.arch' directive overrides the '.fpu'
directive:

arch/arm/crypto/curve25519-core.S:25:2: error: instruction requires: NEON
 vmov.i32 q0, #1
 ^
arch/arm/crypto/curve25519-core.S:26:2: error: instruction requires: NEON
 vshr.u64 q1, q0, #7
 ^
arch/arm/crypto/curve25519-core.S:27:2: error: instruction requires: NEON
 vshr.u64 q0, q0, #8
 ^
arch/arm/crypto/curve25519-core.S:28:2: error: instruction requires: NEON
 vmov.i32 d4, #19
 ^

Shuffle the order of the '.arch' and '.fpu' directives so that the code
builds regardless of the default FPU mode. This has been tested against
both clang with and without Debian's patch and GCC.

Cc: stable@vger.kernel.org
Fixes: d8f1308a025f ("crypto: arm/curve25519 - wire up NEON implementation")
Link: https://github.com/ClangBuiltLinux/continuous-integration2/issues/118
Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Jessica Clarke <jrtc27@jrtc27.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 44200f2d9b8b52389c70e6c7bbe51e0dc6eaf938)
Change-Id: Ie56708e3d0ce0f0a080537dc37434d6c9034ebb9
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
2025-09-24 12:16:38 +02:00
..
alpha UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
arc UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
arm UPSTREAM: crypto: arm/curve25519 - Move '.fpu' after '.arch' 2025-09-24 12:16:38 +02:00
arm64 FROMLIST: crypto: arm64/poly1305-neon - reorder PAC authentication with SP update 2025-09-24 12:16:37 +02:00
c6x
csky
h8300
hexagon UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
ia64 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
m68k Merge tag 'ASB-2025-08-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-01 13:17:46 +03:00
microblaze UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
mips UPSTREAM: crypto: {arm,arm64,mips}/poly1305 - remove redundant non-reduction from emit 2025-09-24 12:16:32 +02:00
nds32 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
nios2 Merge tag 'ASB-2025-08-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-01 13:17:46 +03:00
openrisc UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
parisc Merge tag 'ASB-2025-08-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-01 13:17:46 +03:00
powerpc Merge tag 'ASB-2025-09-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-12 18:48:05 +03:00
riscv Merge tag 'ASB-2025-06-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-06-30 10:49:17 +03:00
s390 Merge tag 'ASB-2025-09-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-12 18:48:05 +03:00
sh UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
sparc Merge tag 'ASB-2025-06-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-06-30 10:49:17 +03:00
um Merge tag 'ASB-2025-09-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-09-12 18:48:05 +03:00
unicore32 UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
x86 ANDROID: GKI: enable CONFIG_WIREGUARD 2025-09-24 12:16:34 +02:00
xtensa UPSTREAM: mm: allow VM_FAULT_RETRY for multiple times 2025-05-18 08:08:42 +00:00
.gitignore
Kconfig BACKPORT: mm: speedup mremap on 1GB or larger regions 2025-02-20 04:17:48 +02:00