Source-Changes-HG archive

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

[src/trunk]: src/sys/arch add void * casts for the clock interrupt handlers.



details:   https://anonhg.NetBSD.org/src/rev/c39b6f36e82f
branches:  trunk
changeset: 460306:c39b6f36e82f
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 16 15:01:10 2019 +0000

description:
add void * casts for the clock interrupt handlers.

diffstat:

 sys/arch/x86/isa/clock.c |   6 +++---
 sys/arch/xen/xen/clock.c |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r dc1e0caad852 -r c39b6f36e82f sys/arch/x86/isa/clock.c
--- a/sys/arch/x86/isa/clock.c  Wed Oct 16 14:56:34 2019 +0000
+++ b/sys/arch/x86/isa/clock.c  Wed Oct 16 15:01:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.34 2019/02/15 08:54:01 nonaka Exp $        */
+/*     $NetBSD: clock.c,v 1.35 2019/10/16 15:01:10 christos Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -121,7 +121,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.34 2019/02/15 08:54:01 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.35 2019/10/16 15:01:10 christos Exp $");
 
 /* #define CLOCKDEBUG */
 /* #define CLOCK_PARANOIA */
@@ -554,7 +554,7 @@
         * want to keep track of clock handlers.
         */
        (void)isa_intr_establish(NULL, 0, IST_PULSE, IPL_CLOCK,
-           (int (*)(void *))clockintr, 0);
+           (int (*)(void *))(void *)clockintr, 0);
 }
 
 void
diff -r dc1e0caad852 -r c39b6f36e82f sys/arch/xen/xen/clock.c
--- a/sys/arch/xen/xen/clock.c  Wed Oct 16 14:56:34 2019 +0000
+++ b/sys/arch/xen/xen/clock.c  Wed Oct 16 15:01:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $   */
+/*     $NetBSD: clock.c,v 1.79 2019/10/16 15:01:10 christos Exp $      */
 
 /*-
  * Copyright (c) 2017, 2018 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.79 2019/10/16 15:01:10 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -763,9 +763,9 @@
        snprintf(intr_xname, sizeof(intr_xname), "%s clock",
            device_xname(ci->ci_dev));
        /* XXX sketchy function pointer cast -- fix the API, please */
-       ci->ci_xen_timer_intrhand = xen_intr_establish_xname(-1, &xen_pic, evtch,
-           IST_LEVEL, IPL_CLOCK, (int (*)(void *))xen_timer_handler, ci, true,
-           intr_xname);
+       ci->ci_xen_timer_intrhand = xen_intr_establish_xname(-1, &xen_pic,
+           evtch, IST_LEVEL, IPL_CLOCK,
+           (int (*)(void *))(void *)xen_timer_handler, ci, true, intr_xname);
        if (ci->ci_xen_timer_intrhand == NULL)
                panic("failed to establish timer interrupt handler");
 



Home | Main Index | Thread Index | Old Index