Module Name: src
Committed By: enami
Date: Tue Aug 31 07:48:23 UTC 2010
Modified Files:
src/sys/ddb: db_input.c
Log Message:
Define db_hist_put() only when DDB_HISTORY_SIZE != 0 so that
build successes on ports like hpcarm.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/ddb/db_input.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/ddb/db_input.c
diff -u src/sys/ddb/db_input.c:1.25 src/sys/ddb/db_input.c:1.26
--- src/sys/ddb/db_input.c:1.25 Tue Aug 31 07:12:55 2010
+++ src/sys/ddb/db_input.c Tue Aug 31 07:48:23 2010
@@ -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 */