Module Name: src
Committed By: bouyer
Date: Sun Dec 10 18:52:41 UTC 2017
Modified Files:
src/sys/dev/acpi: acpi_util.c
Log Message:
Cast to uintptr_t before casting to void *; fix a warning on i386
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/acpi/acpi_util.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/dev/acpi/acpi_util.c
diff -u src/sys/dev/acpi/acpi_util.c:1.9 src/sys/dev/acpi/acpi_util.c:1.10
--- src/sys/dev/acpi/acpi_util.c:1.9 Sun Dec 10 16:51:30 2017
+++ src/sys/dev/acpi/acpi_util.c Sun Dec 10 18:52:41 2017
@@ -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 @@ acpi_intr_establish(device_t dev, uint64
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;