Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi 32-bit build fix



details:   https://anonhg.NetBSD.org/src/rev/0c3a0a509b8d
branches:  trunk
changeset: 318945:0c3a0a509b8d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu May 10 00:07:08 2018 +0000
description:
32-bit build fix

diffstat:

 sys/arch/arm/sunxi/sun6i_dma.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0cec5b87566c -r 0c3a0a509b8d sys/arch/arm/sunxi/sun6i_dma.c
--- a/sys/arch/arm/sunxi/sun6i_dma.c    Thu May 10 00:05:22 2018 +0000
+++ b/sys/arch/arm/sunxi/sun6i_dma.c    Thu May 10 00:07:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun6i_dma.c,v 1.4 2018/05/09 17:17:33 jmcneill Exp $ */
+/* $NetBSD: sun6i_dma.c,v 1.5 2018/05/10 00:07:08 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sun6i_dma.c,v 1.4 2018/05/09 17:17:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sun6i_dma.c,v 1.5 2018/05/10 00:07:08 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -396,7 +396,7 @@
                return;
        }
 
-       conf = of_search_compatible(phandle, compat_data)->data;
+       conf = (void *)of_search_compatible(phandle, compat_data)->data;
 
        sc->sc_nchan = conf->num_channels;
        sc->sc_chan = kmem_alloc(sizeof(*sc->sc_chan) * sc->sc_nchan, KM_SLEEP);



Home | Main Index | Thread Index | Old Index