Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2002 17:36:52 -0400
From:      W Gerald Hicks <gehicks@gehicks.dyndns.org>
To:        Dikshie <dikshie@ppk.itb.ac.id>
Cc:        current@freebsd.org
Subject:   Re: /usr/src/dev/md  error (?)
Message-ID:  <24A26492-9904-11D6-99DB-0030657B5F1E@gehicks.dyndns.org>
In-Reply-To: <20020716200024.A57094@ppk.itb.ac.id>

next in thread | previous in thread | raw e-mail | index | archive | help
Following patch should silence it.

Cheers,

Jerry Hicks
gehicks@gehicks.dyndns.org

Index: src/sys/dev/md/md.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/md/md.c,v
retrieving revision 1.66
diff -u -r1.66 md.c
--- src/sys/dev/md/md.c 24 Jun 2002 12:07:02 -0000      1.66
+++ src/sys/dev/md/md.c 16 Jul 2002 21:32:44 -0000
@@ -606,6 +606,7 @@
                         error = mdstart_swap(sc, bp);
                         break;
                 default:
+                       error = -1;
                         panic("Impossible md(type)");
                         break;
                 }


On Tuesday, July 16, 2002, at 09:00 AM, Dikshie wrote:

>
> Hello,
>
> I got error on step make buildkernel KERNCONF=MANDIRI   :
>
> cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs 
> -Wstrict-prototypes  -W
> missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wno-format 
> -ansi -g -n
> ostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev 
> -I/usr/src/sys/contrib/dev/ac
> pica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include 
> -D_KERNEL -includ
> e opt_global.h -fno-common   -mpreferred-stack-boundary=2 
> -ffreestanding -Werror
>   /usr/src/sys/dev/md/md.c
> cc1: warnings being treated as errors
> /usr/src/sys/dev/md/md.c: In function `md_kthread':
> /usr/src/sys/dev/md/md.c:570: warning: `error' might be used 
> uninitialized in th
> is function
> *** Error code 1
> Stop in /usr/obj/usr/src/sys/MANDIRI.
> *** Error code 1
> Stop in /usr/src.
> *** Error code 1
> Stop in /usr/src.
> mandiri#
>
>
>
> did I miss something ?
>
>
> thanks !
>
>
> -dikshie-
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24A26492-9904-11D6-99DB-0030657B5F1E>