cvs commit: src/sys/dev/pci pcib_if.m

Arjan Van Leeuwen avleeuwen at gmail.com
Wed Apr 13 11:00:58 PDT 2005


On 4/13/05, Warner Losh <imp at freebsd.org> wrote:
> imp         2005-04-13 16:30:30 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/pci          pcib_if.m
>   Log:
>   Default to a interrupt router that returns an invalid interrupt.
>   Otherwise, busses that implement the pcib interface that forget to
>   implement pcib_route_interrupt would return EIO, which the caller
>   interprets as 'use interrupt 6'.  This is likely the cause of much of
>   the grief that we had when I enabled power modes for the cardbus
>   bridge, since the card needed to reroute the interrupt to it and it
>   was getting 6 which was d by the pccbb sanity checks.
> 
>   Revision  Changes    Path
>   1.6       +9 -1      src/sys/dev/pci/pcib_if.m

This seems to break my kernel build:

awk -f /usr/src/sys/tools/makeobjops.awk
/usr/src/sys/dev/sound/pcm/ac97_if.m -c ;  cc -c -O2 -pipe
-fno-strict-aliasing -march=pentium3 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g
-nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm
-I/usr/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Werror  ac97_if.c
pcib_if.c: In function `null_route_interrupt':
pcib_if.c:24: error: `PCI_INVALID_IRQ' undeclared (first use in this function)
pcib_if.c:24: error: (Each undeclared identifier is reported only once
pcib_if.c:24: error: for each function it appears in.)
pcib_if.c: At top level:
pcib_if.c:23: warning: 'null_route_interrupt' defined but not used
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Arjan


More information about the cvs-src mailing list