selftests: arm64: hwcap.c:51:15: error: instruction requires: crc

From: Naresh Kamboju
Date: Thu Aug 17 2023 - 06:04:15 EST


While building selftests arm64 following warnings / errors noticed on the
Linux next-20230817 tag ( from next-20230815 )

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

Build errors:
------------
selftests/arm64/abi/hwcap
hwcap.c:51:15: error: instruction requires: crc
51 | asm volatile("crc32w w0, w0, w1");
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | crc32w w0, w0, w1
| ^
1 error generated.
make[5]: *** [../../lib.mk:181: selftests/arm64/abi/hwcap] Error 1

Links:
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/

Steps to reproduce:
tuxmake --runtime podman --target-arch arm64 --toolchain clang-17
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2U69ue7AaypfY7eRU4UUygecrDx/config
LLVM=1 LLVM_IAS=1 dtbs dtbs-legacy headers kernel kselftest modules

--
Linaro LKFT
https://lkft.linaro.org