git: 0072e5e0f3a0 - main - sys/arm64/arm64/vfp.c: Fix -Wunused and -Wpointer-sign warnings
Alex Richardson
arichardson at FreeBSD.org
Thu Mar 4 18:44:05 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=0072e5e0f3a0bb3aa06708ba64497ef75021d431
commit 0072e5e0f3a0bb3aa06708ba64497ef75021d431
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-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;
More information about the dev-commits-src-main
mailing list