Subject: Compiling mq200 fb support without setting MQ200_DEBUG
To: None <port-hpcmips@netbsd.org>
From: Markus Hennecke <markus.hennecke@fh-swf.de>
List: port-hpcmips
Date: 01/13/2004 16:06:26
Hi,

if options MQ200_DEBUG is not set the build will fail because of
mq200_clknames used in src/sys/arch/hpcmips/dev/mq200subr.c line 179.
Defining mq200_clknames before the MQ200_DEBUG conditional in
mq200debug.c will work around this problem:

--- mq200debug.c.orig   2004-01-13 14:18:16.000000000 +0100
+++ mq200debug.c        2004-01-13 14:18:45.000000000 +0100
@@ -52,10 +52,10 @@

 #define ENABLE(b)      ((b)?"enable":"disable")

-#ifdef MQ200_DEBUG
-
 char *mq200_clknames[] = { "BUS", "PLL1", "PLL2", "PLL3" };

+#ifdef MQ200_DEBUG
+
 void
 mq200_dump_pll(struct mq200_softc *sc)
 {

Greetings
  Markus