mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-19 16:24:21 +00:00
When building with clang, via:
make LLVM=1 -C tools/testing/selftests
Fix this by moving the inline asm to "pure" assembly, in two new files:
clang_helpers_32.S, clang_helpers_64.S.
As a bonus, the pure asm avoids the need for ifdefs, and is now very
simple and easy on the eyes.
Acked-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
12 lines
313 B
ArmAsm
12 lines
313 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* 32-bit assembly helpers for asm operations that lack support in both gcc and
|
|
* clang. For example, clang asm does not support segment prefixes.
|
|
*/
|
|
.global dereference_seg_base
|
|
dereference_seg_base:
|
|
mov %fs:(0), %eax
|
|
ret
|
|
|
|
.section .note.GNU-stack,"",%progbits
|