From owner-freebsd-current@FreeBSD.ORG Mon Jul 7 09:31:59 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AD6337B408 for ; Mon, 7 Jul 2003 09:31:59 -0700 (PDT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BC0043F3F for ; Mon, 7 Jul 2003 09:31:58 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) h67GVssb060117; Mon, 7 Jul 2003 09:31:55 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost)h67GVsMN060116; Mon, 7 Jul 2003 09:31:54 -0700 (PDT) Date: Mon, 7 Jul 2003 09:31:54 -0700 From: Steve Kargl To: Michal Suszko Message-ID: <20030707163154.GA60104@troutmask.apl.washington.edu> References: <20030707152010.GB39108@dry.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707152010.GB39108@dry.pl> User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org Subject: Re: buildkernel ULE related breakage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 16:31:59 -0000 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