diff options
| author | uwe <uwe@NetBSD.org> | 2019-10-06 02:04:26 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2019-10-06 02:04:26 +0000 |
| commit | 1069de1e2d10bbbdef561c706e3cef3d61bb581d (patch) | |
| tree | d9a787f23cc7834d256f638da944655161dff0ab /sys/kern/kern_cpu.c | |
| parent | 11e3747c8260b7b0ab35a633e20f15373e81c727 (diff) | |
Define cpu_xc_* functions with unused second argument to make them
conform to xcfunc_t callback typedef (-Wcast-function-type).
Same object code is generated.
Diffstat (limited to 'sys/kern/kern_cpu.c')
| -rw-r--r-- | sys/kern/kern_cpu.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c index f7b2740b62c..72fa8faeefe 100644 --- a/sys/kern/kern_cpu.c +++ b/sys/kern/kern_cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_cpu.c,v 1.75 2018/11/13 11:06:19 skrll Exp $ */ +/* $NetBSD: kern_cpu.c,v 1.76 2019/10/06 02:04:26 uwe Exp $ */ /*- * Copyright (c) 2007, 2008, 2009, 2010, 2012 The NetBSD Foundation, Inc. @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.75 2018/11/13 11:06:19 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_cpu.c,v 1.76 2019/10/06 02:04:26 uwe Exp $"); #include "opt_cpu_ucode.h" @@ -95,8 +95,8 @@ CTASSERT(offsetof(struct cpu_info, ci_data) == 0); CTASSERT(offsetof(struct cpu_info, ci_data) != 0); #endif -static void cpu_xc_online(struct cpu_info *); -static void cpu_xc_offline(struct cpu_info *); +static void cpu_xc_online(struct cpu_info *, void *); +static void cpu_xc_offline(struct cpu_info *, void *); dev_type_ioctl(cpuctl_ioctl); @@ -328,7 +328,7 @@ cpu_lookup(u_int idx) } static void -cpu_xc_offline(struct cpu_info *ci) +cpu_xc_offline(struct cpu_info *ci, void *unused) { struct schedstate_percpu *spc, *mspc = NULL; struct cpu_info *target_ci; @@ -403,7 +403,7 @@ fail: } static void -cpu_xc_online(struct cpu_info *ci) +cpu_xc_online(struct cpu_info *ci, void *unused) { struct schedstate_percpu *spc; int s; @@ -489,7 +489,7 @@ cpu_getmodel(void) #ifdef __HAVE_INTR_CONTROL static void -cpu_xc_intr(struct cpu_info *ci) +cpu_xc_intr(struct cpu_info *ci, void *unused) { struct schedstate_percpu *spc; int s; @@ -501,7 +501,7 @@ cpu_xc_intr(struct cpu_info *ci) } static void -cpu_xc_nointr(struct cpu_info *ci) +cpu_xc_nointr(struct cpu_info *ci, void *unused) { struct schedstate_percpu *spc; int s; |
