NetBSD Problem Report #18500

Received: (qmail 29650 invoked by uid 605); 2 Oct 2002 10:45:11 -0000
Message-Id: <200210021041.g92Afar01348@delta.cs.mu.OZ.AU>
Date: Wed, 2 Oct 2002 17:41:36 +0700 (ICT)
From: kre@munnari.OZ.AU
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: sys/dev/ir/irframe.c does not compile with only TTY attachment
X-Send-Pr-Version: 3.95

>Number:         18500
>Category:       kern
>Synopsis:       sys/dev/ir/irframe.c does not compile with only TTY attachment
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thorpej
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 02 10:46:00 +0000 2002
>Closed-Date:    Tue Oct 08 05:59:16 +0000 2002
>Last-Modified:  Tue Oct 08 05:59:16 +0000 2002
>Originator:     Robert Elz
>Release:        NetBSD 1.6I  (current as of now - 2002-10-02)
>Organization:
	Prince of Songkla University
>Environment:


System: NetBSD delta.cs.mu.OZ.AU 1.5ZC NetBSD 1.5ZC (DELTA) #4: Mon May 27 23:17:55 ICT 2002 kre@delta.cs.mu.OZ.AU:/usr/src/sys.X/arch/i386/compile/DELTA i386
That described the system running send-pr, and is otherwise irrlevant.
Architecture: i386
Machine: i386
>Description:
	If irframe is included, with no usb (etc) attachments,
	no NIRFRAME == 0 (from config in irframe.h) then lines
	87,88,89 of sys/dev/ir/irframe.c will be compiled.

	Since the changes to struct cfdevice the initialisation
	here is no longer correct, and the compilation fails.
>How-To-Repeat:
	Compile in irframe with no irframe (specific) devices
>Fix:
	Workaround is to not compile in irfrape (pseudo-dev).

	Should be easy to fix for osmeone who understands the
	new cfdevice struct form.   I just added "{ NULL }. "
	to the beginning of the initialisation, which made it
	compile, but I haven't yet tested to see if that works.
>Release-Note:
>Audit-Trail:

From: Jason R Thorpe <thorpej@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/18500 CVS commit: syssrc/sys/dev/ir
Date: Wed,  2 Oct 2002 18:29:37 +0300 (EEST)

 Module Name:	syssrc
 Committed By:	thorpej
 Date:		Wed Oct  2 15:29:36 UTC 2002

 Modified Files:
 	syssrc/sys/dev/ir: irframe.c

 Log Message:
 Use CFDRIVER_DECL().  PR #18500.


 To generate a diff of this commit:
 cvs rdiff -r1.21 -r1.22 syssrc/sys/dev/ir/irframe.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->feedback 
State-Changed-By: thorpej 
State-Changed-When: Wed Oct 2 08:33:24 PDT 2002 
State-Changed-Why:  
Fixed checked in.  Please confirm it's okay now. 


Responsible-Changed-From-To: kern-bug-people->thorpej 
Responsible-Changed-By: thorpej 
Responsible-Changed-When: Wed Oct 2 08:33:24 PDT 2002 
Responsible-Changed-Why:  
I changed the config framework. 
State-Changed-From-To: feedback->closed 
State-Changed-By: thorpej 
State-Changed-When: Mon Oct 7 22:59:02 PDT 2002 
State-Changed-Why:  

Submitter confirms closure. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.