Module Name:    src
Committed By:   uwe
Date:           Sun Oct  6 02:04:26 UTC 2019

Modified Files:
        src/sys/kern: kern_cpu.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/kern/kern_cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_cpu.c
diff -u src/sys/kern/kern_cpu.c:1.75 src/sys/kern/kern_cpu.c:1.76
--- src/sys/kern/kern_cpu.c:1.75	Tue Nov 13 11:06:19 2018
+++ src/sys/kern/kern_cpu.c	Sun Oct  6 02:04:26 2019
@@ -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_da
 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;

Reply via email to