Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest/arm64: Remove redundant _start labels from FP tests

There are a number of freestanding static executables used in floating
point testing that have no runtime at all. These all define the main entry
point as:

.globl _start
function _start
_start:

but clang's integrated assembler complains that:

error: symbol '_start' is already defined

due to having both a label and function directive. Remove the label to
allow building with clang.

No functional change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230111-arm64-kselftest-clang-v1-2-89c69d377727@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Mark Brown and committed by
Catalin Marinas
cd57a658 aa58ace3

-4
-1
tools/testing/selftests/arm64/fp/fp-pidbench.S
··· 31 31 // Main program entry point 32 32 .globl _start 33 33 function _start 34 - _start: 35 34 puts "Iterations per test: " 36 35 mov x20, #10000 37 36 lsl x20, x20, #8
-1
tools/testing/selftests/arm64/fp/fpsimd-test.S
··· 215 215 // Main program entry point 216 216 .globl _start 217 217 function _start 218 - _start: 219 218 mov x23, #0 // signal count 220 219 221 220 mov w0, #SIGINT
-1
tools/testing/selftests/arm64/fp/sve-test.S
··· 378 378 // Main program entry point 379 379 .globl _start 380 380 function _start 381 - _start: 382 381 mov x23, #0 // Irritation signal count 383 382 384 383 mov w0, #SIGINT
-1
tools/testing/selftests/arm64/fp/za-test.S
··· 231 231 // Main program entry point 232 232 .globl _start 233 233 function _start 234 - _start: 235 234 mov x23, #0 // signal count 236 235 237 236 mov w0, #SIGINT