Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2021 18:44:05 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0072e5e0f3a0 - main - sys/arm64/arm64/vfp.c: Fix -Wunused and -Wpointer-sign warnings
Message-ID:  <202103041844.124Ii5sX034929@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=0072e5e0f3a0bb3aa06708ba64497ef75021d431

commit 0072e5e0f3a0bb3aa06708ba64497ef75021d431
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-04 14:55:29 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-04 18:25:44 +0000

    sys/arm64/arm64/vfp.c: Fix -Wunused and -Wpointer-sign warnings
    
    These are off by default but were flagged by my IDE while adding some
    debugging printfs for D29060.
---
 sys/arm64/arm64/vfp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c
index 62244ddc80e8..23c782c6dccb 100644
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -102,7 +102,7 @@ vfp_discard(struct thread *td)
 static void
 vfp_store(struct vfpstate *state)
 {
-	__int128_t *vfp_state;
+	__uint128_t *vfp_state;
 	uint64_t fpcr, fpsr;
 
 	vfp_state = state->vfp_regs;
@@ -134,7 +134,7 @@ vfp_store(struct vfpstate *state)
 static void
 vfp_restore(struct vfpstate *state)
 {
-	__int128_t *vfp_state;
+	__uint128_t *vfp_state;
 	uint64_t fpcr, fpsr;
 
 	vfp_state = state->vfp_regs;
@@ -357,7 +357,7 @@ fpu_kern_leave(struct thread *td, struct fpu_kern_ctx *ctx)
 }
 
 int
-fpu_kern_thread(u_int flags)
+fpu_kern_thread(u_int flags __unused)
 {
 	struct pcb *pcb = curthread->td_pcb;
 
@@ -372,7 +372,7 @@ fpu_kern_thread(u_int flags)
 }
 
 int
-is_fpu_kern_thread(u_int flags)
+is_fpu_kern_thread(u_int flags __unused)
 {
 	struct pcb *curpcb;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103041844.124Ii5sX034929>