Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Cast to uintptr_t before casting to void *; fix...



details:   https://anonhg.NetBSD.org/src/rev/5ae9fed31b4d
branches:  trunk
changeset: 828387:5ae9fed31b4d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Dec 10 18:52:41 2017 +0000

description:
Cast to uintptr_t before casting to void *; fix a warning on i386

diffstat:

 sys/dev/acpi/acpi_util.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r eeb298d99bd0 -r 5ae9fed31b4d sys/dev/acpi/acpi_util.c
--- a/sys/dev/acpi/acpi_util.c  Sun Dec 10 17:52:13 2017 +0000
+++ b/sys/dev/acpi/acpi_util.c  Sun Dec 10 18:52:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $ */
+/*     $NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -520,7 +520,7 @@
     unsigned int (*intr)(void *), void *iarg)
 {
        ACPI_STATUS rv;
-       ACPI_HANDLE hdl = (void *)c;
+       ACPI_HANDLE hdl = (void *)(uintptr_t)c;
        struct acpi_resources res;
        struct acpi_irq *irq;
        struct acpi_irq_handler *aih = NULL;



Home | Main Index | Thread Index | Old Index