Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/samsung Make it compile without DIAGNOSTIC



details:   https://anonhg.NetBSD.org/src/rev/1043e8186197
branches:  trunk
changeset: 331835:1043e8186197
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Aug 26 11:49:39 2014 +0000

description:
Make it compile without DIAGNOSTIC

diffstat:

 sys/arch/arm/samsung/exynos_gpio.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 4046a7b7d53d -r 1043e8186197 sys/arch/arm/samsung/exynos_gpio.c
--- a/sys/arch/arm/samsung/exynos_gpio.c        Tue Aug 26 11:48:20 2014 +0000
+++ b/sys/arch/arm/samsung/exynos_gpio.c        Tue Aug 26 11:49:39 2014 +0000
@@ -32,7 +32,7 @@
 #include "gpio.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exynos_gpio.c,v 1.7 2014/08/14 15:42:31 reinoud Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exynos_gpio.c,v 1.8 2014/08/26 11:49:39 reinoud Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -326,8 +326,10 @@
 static int
 exynos_gpio_match(device_t parent, cfdata_t cf, void *aux)
 {
+#ifdef DIAGNOSTIC
        struct exyo_attach_args * const exyoaa = aux;
        struct exyo_locators *loc = &exyoaa->exyo_loc;
+#endif
 
        /* no locators expected */
        KASSERT(loc->loc_offset == 0);



Home | Main Index | Thread Index | Old Index