Subject: kern/13727: dev/pci/pccbb.c CB_PCMCIA_POLL and PCCBB_PCMCIA_POLL options do not compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Curt Sampson <cjs@angelic.cynic.net>
List: netbsd-bugs
Date: 08/16/2001 14:49:50
>Number:         13727
>Category:       kern
>Synopsis:       dev/pci/pccbb.c CB_PCMCIA_POLL and PCCBB_PCMCIA_POLL options do not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 15 22:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Curt Sampson
>Release:        2001-08-15
>Organization:
Curt Sampson <cjs@cynic.net>  +81 3 5778 0123   de gustibus, aut bene aut nihil

She saw that he had singled her out from the three...for no reasoned purpose
of further acquaintance, but in commonplace obedience to conjunctive orders
from headquarters, unconsciously received by unfortunate men when the last
intention of their lives is to be occupied with the feminine.
>Environment:
	Toshiba Libretto L2
System: NetBSD angelic.cynic.net 1.5X NetBSD 1.5X (ANGELIC-$Revision$) #45: Thu Aug 16 13:09:15 JST 2001 cjs@angelic.cynic.net:/u/netbsd/src/sys/arch/i386/compile/ANGELIC i386
Architecture: i386
Machine: i386
>Description:
	Code in dev/pci/pccbb.c enabled with the CB_PCMCIA_POLL and
	PCCBB_PCMCIA_POLL options does not compile. The cb_pcmcia_poll
	structure definition refers to the type pccard_chipset_tag_t, which
	does not appear to exist. (I grepped all the kernel *.c and *.h files
	for this, and it appears only this once in dev/pci/pccbb.c.
	Also, the pccbb_pcmcia_poll function references member sc in
	struct pccbb_softc, which member does not exist.
>How-To-Repeat:
	In dev/pci/pccbb.c, #define CB_PCMCIA_POLL and PCCBB_PCMCIA_POLL.
	(And maybe CBB_DEBUG, too, if you still don't get the errors.)
	Attempt to compile it. You should see an error similar to this, though
	the line numbers will be a bit different:

	../../../../dev/pci/pccbb.c:1351: syntax error before `pccard_chipset_tag_t'
	../../../../dev/pci/pccbb.c: In function `cb_pcmcia_poll':
	../../../../dev/pci/pccbb.c:1366: structure has no member named `ct'
	../../../../dev/pci/pccbb.c:1367: dereferencing pointer to incomplete type
	../../../../dev/pci/pccbb.c: In function `pccbb_pcmcia_poll':
	../../../../dev/pci/pccbb.c:2810: structure has no member named `sc'
	cc1: warnings being treated as errors
	../../../../dev/pci/pccbb.c: At top level:
	../../../../dev/pci/pccbb.c:1356: warning: `cb_poll' defined but not used
	../../../../dev/pci/pccbb.c:1357: warning: `cb_poll_n' defined but not used
	../../../../dev/pci/pccbb.c:2799: warning: `pccbb_poll' defined but not used
	../../../../dev/pci/pccbb.c:2800: warning: `pccbb_poll_n' defined but not used

>Fix:
	Unknown, off-hand.
>Release-Note:
>Audit-Trail:
>Unformatted: