Subject: kern/18500: sys/dev/ir/irframe.c does not compile with only TTY attachment
To: None <>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 10/02/2002 17:41:36
>Number:         18500
>Category:       kern
>Synopsis:       sys/dev/ir/irframe.c does not compile with only TTY attachment
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 02 03:46:00 PDT 2002
>Originator:     Robert Elz
>Release:        NetBSD 1.6I  (current as of now - 2002-10-02)
	Prince of Songkla University
System: NetBSD 1.5ZC NetBSD 1.5ZC (DELTA) #4: Mon May 27 23:17:55 ICT 2002 i386
That described the system running send-pr, and is otherwise irrlevant.
Architecture: i386
Machine: i386
	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.
	Compile in irframe with no irframe (specific) devices
	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.