Subject: port-mac68k/25678: mac68k/dev/zs_kgdb.c does not build
To: None <gnats-bugs@gnats.netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 05/23/2004 01:41:49
>Number: 25678
>Category: port-mac68k
>Synopsis: mac68k/dev/zs_kgdb.c does not build if kgdb is configured
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-mac68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 22 23:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Hauke Fath
>Release: NetBSD 1.6K (2.0beta kernel build)
>Organization:
Mahlzeit!
>Environment:
System: NetBSD q700 1.6K NetBSD 1.6K (FG54) #12: Fri Dec 20 10:17:57 CET 2002 hauke@q700:/usr/src/sys/arch/mac68k/compile/FG54 mac68k
Architecture: m68k
Machine: mac68k
(building a 2.0beta kernel)
>Description:
A 2.0 kernel configured with kgdb fails to build in
mac68k/dev/zs_kgdb.c because of bit rot.
>How-To-Repeat:
Enable kgdb in kernel configuration, make.
>Fix:
Apply the following patch (even better, knf the file):
[hauke@q700] ~/<5>mac68k/dev > cvs diff -u zs_kgdb.c
Index: zs_kgdb.c
===================================================================
RCS file: /cvsroot/netbsd/current/sys/arch/mac68k/dev/zs_kgdb.c,v
retrieving revision 1.1.1.3
diff -u -u -r1.1.1.3 zs_kgdb.c
--- zs_kgdb.c 22 Dec 2003 21:24:55 -0000 1.1.1.3
+++ zs_kgdb.c 22 May 2004 23:33:27 -0000
@@ -49,7 +49,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.4 2003/07/15 02:43:19 lukem Exp $");
-
+#include "opt_kgdb.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
@@ -144,7 +144,7 @@
* Called after cninit(), so printf() etc. works.
*/
void
-zs_kgdb_init()
+zs_kgdb_init(void)
{
struct zs_chanstate cs;
volatile struct zschan *zc;
>Release-Note:
>Audit-Trail:
>Unformatted: