git: 74d72b3491e8 - main - clang: Fix warnings in ARM GCS ACLE header
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Nov 2026 14:01:23 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=74d72b3491e810068313e49629c3b8fe46f29318
commit 74d72b3491e810068313e49629c3b8fe46f29318
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-11-14 14:01:01 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-11-14 14:01:01 +0000
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete@twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
---
contrib/llvm-project/clang/lib/Headers/arm_acle.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/llvm-project/clang/lib/Headers/arm_acle.h b/contrib/llvm-project/clang/lib/Headers/arm_acle.h
index 5cfa3d023a7d..f919b91696d8 100644
--- a/contrib/llvm-project/clang/lib/Headers/arm_acle.h
+++ b/contrib/llvm-project/clang/lib/Headers/arm_acle.h
@@ -832,12 +832,12 @@ __rndrrs(uint64_t *__p) {
/* 11.2 Guarded Control Stack intrinsics */
#if defined(__ARM_64BIT_STATE) && __ARM_64BIT_STATE
static __inline__ void * __attribute__((__always_inline__, __nodebug__))
-__gcspr() {
+__gcspr(void) {
return (void *)__builtin_arm_rsr64("gcspr_el0");
}
static __inline__ uint64_t __attribute__((__always_inline__, __nodebug__, target("gcs")))
-__gcspopm() {
+__gcspopm(void) {
return __builtin_arm_gcspopm(0);
}