From c3fab6f99be86b3eca27eeb5f0815962cbb7e186 Mon Sep 17 00:00:00 2001 From: mjg Date: Sat, 30 Nov 2019 19:33:02 +0000 Subject: [PATCH] smp: cast the read in quiesce_all_critical through void * Fixes compilation on some 32-bit arm platforms. Sponsored by: The FreeBSD Foundation --- sys/kern/subr_smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 89524a274ca5..a34015130bcc 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -952,7 +952,7 @@ quiesce_all_critical(void) break; cpu_spinwait(); newtd = (struct thread *) - atomic_load_acq_ptr((u_long *)pcpu->pc_curthread); + atomic_load_acq_ptr((void *)pcpu->pc_curthread); if (td != newtd) break; }