Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex fix non-DIAGNOSTIC build



details:   https://anonhg.NetBSD.org/src/rev/5cb48137a33c
branches:  trunk
changeset: 993241:5cb48137a33c
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Sep 01 20:54:32 2018 +0000

description:
fix non-DIAGNOSTIC build

diffstat:

 sys/arch/arm/cortex/gtmr.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r a10122e2123b -r 5cb48137a33c sys/arch/arm/cortex/gtmr.c
--- a/sys/arch/arm/cortex/gtmr.c        Sat Sep 01 19:36:53 2018 +0000
+++ b/sys/arch/arm/cortex/gtmr.c        Sat Sep 01 20:54:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gtmr.c,v 1.32 2018/06/30 17:30:37 jmcneill Exp $       */
+/*     $NetBSD: gtmr.c,v 1.33 2018/09/01 20:54:32 tnn Exp $    */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.32 2018/06/30 17:30:37 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gtmr.c,v 1.33 2018/09/01 20:54:32 tnn Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -87,7 +87,9 @@
        return val; \
 }
 
+#ifdef DIAGNOSTIC
 stable_read(gtmr_cntv_cval);
+#endif
 stable_read(gtmr_cntvct);
 
 static int gtmr_match(device_t, cfdata_t, void *);
@@ -172,8 +174,10 @@
 
        evcnt_attach_dynamic(&gtmr_cntv_tval_write_ev, EVCNT_TYPE_MISC, NULL,
            device_xname(self), "CNTV_TVAL write retry max");
+#ifdef DIAGNOSTIC
        evcnt_attach_dynamic(&gtmr_cntv_cval_read_ev, EVCNT_TYPE_MISC, NULL,
            device_xname(self), "CNTV_CVAL read retry max");
+#endif
        evcnt_attach_dynamic(&gtmr_cntvct_read_ev, EVCNT_TYPE_MISC, NULL,
            device_xname(self), "CNTVCT read retry max");
 



Home | Main Index | Thread Index | Old Index