Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2003 09:31:54 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Michal Suszko <Michal@dry.pl>
Cc:        freebsd-current@freebsd.org
Subject:   Re: buildkernel ULE related breakage
Message-ID:  <20030707163154.GA60104@troutmask.apl.washington.edu>
In-Reply-To: <20030707152010.GB39108@dry.pl>
References:  <20030707152010.GB39108@dry.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 07, 2003 at 05:20:10PM +0200, Michal Suszko wrote:
> 
> Hi,
> Got this error compiling GENERIC with s/4BSD/ULE/ on recent -CURRENT 
> ( wrapped long lines )
> 
> cc -c -O -pipe -march=pentium3 -Wall -Wredundant-decls -Wnested-externs
>   -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
>   -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I.
>   -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica
>   -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath
>   -I/usr/src/sys/contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h
>   -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2
>   -ffreestanding -Werror /usr/src/sys/kern/sched_ule.c
> cc1: warnings being treated as errors
> /usr/src/sys/kern/sched_ule.c: In function `sched_setup':
> /usr/src/sys/kern/sched_ule.c:531: warning: unused variable `i'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/TEST.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 

I sent Jeff the following patch.


--- sched_ule.c.orig	Sun Jul  6 10:43:15 2003
+++ sched_ule.c	Sun Jul  6 10:44:00 2003
@@ -528,7 +528,9 @@
 static void
 sched_setup(void *dummy)
 {
+#ifdef SMP
 	int i;
+#endif
 
 	slice_min = (hz/100);	/* 10ms */
 	slice_max = (hz/7);	/* ~140ms */
-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030707163154.GA60104>