Subject: port-hpcmips/23599: [PATCH] do not compile GENERIC kernel
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hoda@tail.gr.jp>
List: netbsd-bugs
Date: 11/30/2003 08:43:40
>Number:         23599
>Category:       port-hpcmips
>Synopsis:       [PATCH] do not compile GENERIC kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 08:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     SAWADA Hodaka
>Release:        NetBSD 1.6ZE
>Organization:
http://www.tail.gr.jp/~hoda/
>Environment:
System: NetBSD ellis 1.6ZE NetBSD 1.6ZE (ELLIS) #47: Sat Nov 8 12:39:39 JST 2003
 root@ellis:/usr/src/sys/arch/i386/compile/ELLIS i386

gcc --version
gcc (GCC) 3.3.2 (NetBSD nb1 20031026)

>Description:
do not compile GENERIC kernel
>How-To-Repeat:
./build.sh -a mipsel -m hpcmips -T /usr/cross kernel=GENERIC

>Fix:
--- sys/arch/hpcmips/vr/bcu_vrip.c.orig 2003-11-08 19:36:55.000000000 +0900
+++ sys/arch/hpcmips/vr/bcu_vrip.c      2003-11-30 16:40:00.000000000 +0900
@@ -409,7 +409,7 @@
 int
 vrbcu_vrip_getcpuclock(void)
 {
-       u_int16_t clksp;
+       u_int16_t clksp = 0;
        int cpuid, cpuclock;
 
        cpuid = vrbcu_vrip_getcpuid();
--- sys/arch/hpcmips/vr/vrpiu.c.orig    2003-10-25 16:08:34.000000000 +0900
+++ sys/arch/hpcmips/vr/vrpiu.c 2003-11-30 16:44:19.000000000 +0900
@@ -606,7 +606,7 @@
 {
        unsigned int cnt, i;
        unsigned int intrstat, page;
-       int tpx0, tpx1, tpy0, tpy1;
+       int tpx0 = 0, tpx1 = 0, tpy0 = 0, tpy1 = 0;
        int x, y, xraw, yraw;
 
        intrstat = vrpiu_read(sc, PIUINT_REG_W);
--- sys/arch/hpcmips/dev/mq200subr.c.orig       2003-11-30 16:53:38.000000000 +0900
+++ sys/arch/hpcmips/dev/mq200subr.c    2003-11-30 16:51:15.000000000 +0900
@@ -108,7 +108,7 @@
 {
        int n, m, p, out;
        int ref = 12288;
-       int bn, bm, bp, e;
+       int bn = 0, bm = 0, bp = 0, e;
 
        e = ref;
        for (p = 0; p <= 4; p++) {
--- sys/arch/hpcmips/tx/txcom.c.orig    2003-07-18 18:32:47.000000000 +0900
+++ sys/arch/hpcmips/tx/txcom.c 2003-11-30 16:55:33.000000000 +0900
@@ -783,7 +783,7 @@
        struct txcom_softc *sc = txcom_cd.cd_devs[minor(dev)];
        struct txcom_chip *chip;
        struct tty *tp;
-       int s, err;
+       int s, err = 0;
 
        if (!sc)
                return ENXIO;

>Release-Note:
>Audit-Trail:
>Unformatted: