NetBSD Problem Report #3906
Received: (qmail 18382 invoked from network); 22 Jul 1997 14:37:37 -0000
Message-Id: <199707221419.QAA20250@di-frueauf.ira.uka.de>
Date: Tue, 22 Jul 1997 16:19:05 +0200 (CEST)
From: frueauf@ira.uka.de
Reply-To: frueauf@ira.uka.de
To: gnats-bugs@gnats.netbsd.org
Subject: hp300/dev/rd.c uses stil HPIBBUS_PUNIT_UNK which was renamed
X-Send-Pr-Version: 3.95
>Number: 3906
>Category: port-hp300
>Synopsis: hp300/dev/rd.c uses stil HPIBBUS_PUNIT_UNK which was renamed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 22 07:50:01 +0000 1997
>Closed-Date: Tue Jul 22 15:21:17 +0000 1997
>Last-Modified: Tue Jul 22 15:21:39 +0000 1997
>Originator: Thorsten Frueauf
>Release: <NetBSD-current source date> NetBSD current 20.07.1997
>Organization:
private
>Environment:
NetBSD cybersil 1.2G NetBSD 1.2G (CYBERSIL) #0: Thu Jul 10 15:54:22 MEST 1997 milano@cybersil:/usr/src/sys/arch/hp300/compile/CYBERSIL hp300
>Description:
hp300/dev/rd.c does not reflect the recent change of
HPIBBUS_PUNIT_UNK -> HPIBBUSCF_PUNIT_DEFAULT.
>How-To-Repeat:
Compile a recent kernel on NetBSD/hp300 and watch:
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DEXEC_AOUT -DEXEC_SCRIPT -DCOMPAT_43 -DCOMPAT_44 -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12 -DSYSVSHM -DSYSVSEM -DSYSVMSG -DKTRACE -DNKMEMCLUSTERS="0x400" -DFFS -DCD9660 -DNFS -DUNION -DKERNFS -DFDESC -DPROCFS -DMFS -DFIFO -DQUOTA -DNFSSERVER -DINET -DTCP_COMPAT_42 -DFPSP -DCOMPAT_NOLABEL -DUK_KEYBOARD -DCOMPAT_HPUX -DCOMPAT_M68K4K -DMAXUSERS=32 -D_KERNEL -Dmc68020 -Dhp300 -DFPCOPROC -c ../../../../arch/hp300/dev/rd.c
../../../../arch/hp300/dev/rd.c: In function `rdmatch':
../../../../arch/hp300/dev/rd.c:262: `HPIBBUS_PUNIT_UNK' undeclared (first use this function)
../../../../arch/hp300/dev/rd.c:262: (Each undeclared identifier is reported only once
../../../../arch/hp300/dev/rd.c:262: for each function it appears in.)
*** Error code 1
>Fix:
Apply the following patch to /src/sys/arch/hp300/dev/rd.c:
*** rd.c-orig Tue Jul 22 16:11:59 1997
--- rd.c Tue Jul 22 16:11:59 1997
***************
*** 259,265 ****
* Set punit if operator specified one in the kernel
* configuration file.
*/
! if (match->hpibbuscf_punit != HPIBBUS_PUNIT_UNK &&
match->hpibbuscf_punit < HPIB_NPUNITS)
ha->ha_punit = match->hpibbuscf_punit;
--- 259,265 ----
* Set punit if operator specified one in the kernel
* configuration file.
*/
! if (match->hpibbuscf_punit != HPIBBUSCF_PUNIT_DEFAULT &&
match->hpibbuscf_punit < HPIB_NPUNITS)
ha->ha_punit = match->hpibbuscf_punit;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: kleink
State-Changed-When: Tue Jul 22 08:21:17 PDT 1997
State-Changed-Why:
Fixed as suggested.
>Unformatted:
hp300/dev/rd.c uses stil HPIBBUS_PUNIT_UNK which was renamed
(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.