Subject: kern/13727: dev/pci/pccbb.c CB_PCMCIA_POLL and PCCBB_PCMCIA_POLL options do not compile
To: None <email@example.com>
From: Curt Sampson <firstname.lastname@example.org>
Date: 08/16/2001 14:49:50
>Synopsis: dev/pci/pccbb.c CB_PCMCIA_POLL and PCCBB_PCMCIA_POLL options do not compile
>Arrival-Date: Wed Aug 15 22:46:00 PDT 2001
>Originator: Curt Sampson
Curt Sampson <email@example.com> +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.
Toshiba Libretto L2
System: NetBSD angelic.cynic.net 1.5X NetBSD 1.5X (ANGELIC-$Revision$) #45: Thu Aug 16 13:09:15 JST 2001 firstname.lastname@example.org:/u/netbsd/src/sys/arch/i386/compile/ANGELIC i386
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.
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