git: 2343069ab038 - stable/13 - sys/arm64/arm64/vfp.c: Fix -Wunused and -Wpointer-sign warnings

Alex Richardson arichardson at FreeBSD.org
Wed Mar 17 10:27:35 UTC 2021


The branch stable/13 has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=2343069ab038ffb66d3329db96a5d5787c4d5ce4

commit 2343069ab038ffb66d3329db96a5d5787c4d5ce4
Author:     Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-04 14:55:29 +0000
Commit:     Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-03-17 09:51:39 +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.
    
    (cherry picked from commit 0072e5e0f3a0bb3aa06708ba64497ef75021d431)
---
 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 6382547c8966..5fa420e668c1 100644
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -103,7 +103,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;
@@ -135,7 +135,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;
@@ -378,7 +378,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;
 
@@ -393,7 +393,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;
 


More information about the dev-commits-src-all mailing list