Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Define cpu_xc_* functions with unused second argume...



details:   https://anonhg.NetBSD.org/src/rev/eb83d8c84af3
branches:  trunk
changeset: 460071:eb83d8c84af3
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Oct 06 02:04:26 2019 +0000

description:
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:

 sys/kern/kern_cpu.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r 112c35deb55d -r eb83d8c84af3 sys/kern/kern_cpu.c
--- a/sys/kern/kern_cpu.c       Sun Oct 06 01:05:36 2019 +0000
+++ b/sys/kern/kern_cpu.c       Sun Oct 06 02:04:26 2019 +0000
@@ -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);
 #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 @@
 }
 
 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 @@
 }
 
 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 @@
 
 #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 @@
 }
 
 static void
-cpu_xc_nointr(struct cpu_info *ci)
+cpu_xc_nointr(struct cpu_info *ci, void *unused)
 {
        struct schedstate_percpu *spc;
        int s;



Home | Main Index | Thread Index | Old Index