Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb Define db_hist_put() only when DDB_HISTORY_SIZE != 0...



details:   https://anonhg.NetBSD.org/src/rev/86e896841314
branches:  trunk
changeset: 757468:86e896841314
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Aug 31 07:48:23 2010 +0000

description:
Define db_hist_put() only when DDB_HISTORY_SIZE != 0 so that
build successes on ports like hpcarm.

diffstat:

 sys/ddb/db_input.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 59ec7a2128ba -r 86e896841314 sys/ddb/db_input.c
--- a/sys/ddb/db_input.c        Tue Aug 31 07:12:55 2010 +0000
+++ b/sys/ddb/db_input.c        Tue Aug 31 07:48:23 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_input.c,v 1.25 2010/08/31 07:12:55 enami Exp $      */
+/*     $NetBSD: db_input.c,v 1.26 2010/08/31 07:48:23 enami Exp $      */
 
 /*
  * Mach Operating System
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_input.c,v 1.25 2010/08/31 07:12:55 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_input.c,v 1.26 2010/08/31 07:48:23 enami Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddbparam.h"
@@ -141,9 +141,9 @@
        if (db_history_curr < db_history)                               \
                db_history_curr = db_history + DDB_HISTORY_SIZE - 1;    \
     } while (0)
-#endif
 
-static inline void db_hist_put(int c)
+static inline void
+db_hist_put(int c)
 {
        KASSERT(&db_history[0]  <= db_history_last);
        KASSERT(db_history_last <= &db_history[DDB_HISTORY_SIZE-1]);
@@ -153,6 +153,7 @@
        if (db_history_last > &db_history[DDB_HISTORY_SIZE-1])
            db_history_last = db_history;
 }
+#endif
        
 
 /* returns true at end-of-line */



Home | Main Index | Thread Index | Old Index