Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Attempt to appease gcc and unbreak i386 build. ...



details:   https://anonhg.NetBSD.org/src/rev/5081962d1109
branches:  trunk
changeset: 837037:5081962d1109
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Nov 17 07:06:25 2018 +0000

description:
Attempt to appease gcc and unbreak i386 build.   Should be NFC.

diffstat:

 sys/dev/acpi/sdhc_acpi.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r c795d93fd9e3 -r 5081962d1109 sys/dev/acpi/sdhc_acpi.c
--- a/sys/dev/acpi/sdhc_acpi.c  Sat Nov 17 05:26:46 2018 +0000
+++ b/sys/dev/acpi/sdhc_acpi.c  Sat Nov 17 07:06:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc_acpi.c,v 1.6 2018/11/16 23:05:50 jmcneill Exp $   */
+/*     $NetBSD: sdhc_acpi.c,v 1.7 2018/11/17 07:06:25 kre Exp $        */
 
 /*
  * Copyright (c) 2016 Kimihiro Nonaka <nonaka%NetBSD.org@localhost>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.6 2018/11/16 23:05:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_acpi.c,v 1.7 2018/11/17 07:06:25 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -179,7 +179,8 @@
                goto cleanup;
        }
 
-       sc->sc_ih = acpi_intr_establish(self, (uint64_t)aa->aa_node->ad_handle,
+       sc->sc_ih = acpi_intr_establish(self,
+           (uint64_t)(uintptr_t)aa->aa_node->ad_handle,
            IPL_BIO, false, sdhc_intr, &sc->sc, device_xname(self));
        if (sc->sc_ih == NULL) {
                aprint_error_dev(self,



Home | Main Index | Thread Index | Old Index