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.
This commit is contained in:
Alex Richardson 2021-03-04 14:55:29 +00:00
parent a5dce53b75
commit 0072e5e0f3

View File

@ -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;