Re: buildkernel ULE related breakage

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Mon, 7 Jul 2003 09:31:54 -0700
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
_at__at_ -528,7 +528,9 _at__at_
 static void
 sched_setup(void *dummy)
 {
+#ifdef SMP
 	int i;
+#endif
 
 	slice_min = (hz/100);	/* 10ms */
 	slice_max = (hz/7);	/* ~140ms */
-- 
Steve
Received on Mon Jul 07 2003 - 07:31:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:14 UTC