NetBSD Problem Report #42249
From jarle@festningen.uninett.no Fri Oct 30 12:45:03 2009
Return-Path: <jarle@festningen.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 7B4B263B906
for <gnats-bugs@gnats.NetBSD.org>; Fri, 30 Oct 2009 12:45:03 +0000 (UTC)
Message-Id: <20091030124500.4A77080B90@festningen.uninett.no>
Date: Fri, 30 Oct 2009 13:45:00 +0100 (CET)
From: jarle@uninett.no
Reply-To: jarle@uninett.no
To: gnats-bugs@gnats.NetBSD.org
Subject: Build failure in pmap.c for pure Sun4C config
X-Send-Pr-Version: 3.95
>Number: 42249
>Category: port-sparc
>Synopsis: Build failure in pmap.c for pure Sun4C config
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: port-sparc-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 30 12:50:00 +0000 2009
>Closed-Date: Fri Oct 30 15:13:06 +0000 2009
>Last-Modified: Sun Nov 15 06:00:04 +0000 2009
>Originator: Jarle Greipsland
>Release: NetBSD 5.99.21
>Organization:
>Environment:
System: NetBSD rigel.urc.uninett.no 4.99.19 NetBSD 4.99.19 (RIGEL) #0: Fri May 11 18:37:17 CEST 2007 jarle@rigel.urc.uninett.no:/usr/obj/sys/arch/sparc/compile/RIGEL sparc
Architecture: sparc
Machine: sparc
>Description:
Try and build a sparc kernel with only the stuff required by a Sun4C
system. This fails with:
cc1: warnings being treated as errors
/external/usr/src/sys/arch/sparc/sparc/pmap.c: In function 'ctx_alloc':
/external/usr/src/sys/arch/sparc/sparc/pmap.c:2089: warning: unused variable 'cpi'
/external/usr/src/sys/arch/sparc/sparc/pmap.c: In function 'ctx_free':
/external/usr/src/sys/arch/sparc/sparc/pmap.c:2256: warning: unused variable 'cpi'
>How-To-Repeat:
Build -current kernel with custom config for Sun4C.
>Fix:
Apply patch:
Index: pmap.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/sparc/pmap.c,v
retrieving revision 1.335
diff -u -r1.335 pmap.c
--- pmap.c 21 Oct 2009 21:12:02 -0000 1.335
+++ pmap.c 30 Oct 2009 12:39:51 -0000
@@ -2086,7 +2086,9 @@
struct regmap *rp;
int gap_start, gap_end;
vaddr_t va;
+#if defined(SUN4M) || defined(SUN4D)
struct cpu_info *cpi;
+#endif
/*XXX-GCC!*/gap_start=gap_end=0;
#ifdef DEBUG
@@ -2253,7 +2255,9 @@
ctx_free(struct pmap *pm)
{
union ctxinfo *c;
+#if defined(SUN4M) || defined(SUN4D)
struct cpu_info *cpi;
+#endif
int ctx;
c = pm->pm_ctx;
>Release-Note:
>Audit-Trail:
From: Havard Eidnes <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42249 CVS commit: src/sys/arch/sparc/sparc
Date: Fri, 30 Oct 2009 15:05:54 +0000
Module Name: src
Committed By: he
Date: Fri Oct 30 15:05:54 UTC 2009
Modified Files:
src/sys/arch/sparc/sparc: pmap.c
Log Message:
Avoid unused variable warnings on Sun4c-only kernels.
Fix applied from PR#42249 -- thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.335 -r1.336 src/sys/arch/sparc/sparc/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: he@NetBSD.org
State-Changed-When: Fri, 30 Oct 2009 15:13:06 +0000
State-Changed-Why:
Patch applied -- many thanks!
From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42249 CVS commit: [netbsd-5] src/sys/arch/sparc/sparc
Date: Sun, 15 Nov 2009 05:58:38 +0000
Module Name: src
Committed By: snj
Date: Sun Nov 15 05:58:38 UTC 2009
Modified Files:
src/sys/arch/sparc/sparc [netbsd-5]: pmap.c
Log Message:
Pull up following revision(s) (requested by jdc in ticket #1138):
sys/arch/sparc/sparc/pmap.c: revision 1.336
Avoid unused variable warnings on Sun4c-only kernels.
Fix applied from PR#42249 -- thanks!
To generate a diff of this commit:
cvs rdiff -u -r1.322.20.1 -r1.322.20.2 src/sys/arch/sparc/sparc/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.