Module Name: src
Committed By: kre
Date: Sat Nov 17 07:06:26 UTC 2018
Modified Files:
src/sys/dev/acpi: sdhc_acpi.c
Log Message:
Attempt to appease gcc and unbreak i386 build. Should be NFC.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/acpi/sdhc_acpi.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/sdhc_acpi.c
diff -u src/sys/dev/acpi/sdhc_acpi.c:1.6 src/sys/dev/acpi/sdhc_acpi.c:1.7
--- src/sys/dev/acpi/sdhc_acpi.c:1.6 Fri Nov 16 23:05:50 2018
+++ src/sys/dev/acpi/sdhc_acpi.c Sat Nov 17 07:06:25 2018
@@ -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 <[email protected]>
@@ -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 @@ sdhc_acpi_attach(device_t parent, device
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,