CONFIG_PCI incorrect

Matt Hawkins (matt@blitzen.canberra.edu.au)
Wed, 18 Dec 1996 06:11:34 +1100


When compiling a clean 2.1.16, I get the following error spam:

make[1]: Entering directory `/usr/src/linux/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -DCPU=486 -c -o bios32.o bios32.c
bios32.c: In function `check_direct_pci':
bios32.c:637: `pci_direct_conf1' undeclared (first use this function)
bios32.c:637: (Each undeclared identifier is reported only once
bios32.c:637: for each function it appears in.)
bios32.c:649: `pci_direct_conf2' undeclared (first use this function)
bios32.c: In function `pcibios_present':
bios32.c:663: `access_pci' undeclared (first use this function)
bios32.c:664: warning: control reaches end of non-void function
bios32.c: In function `pcibios_find_class':
bios32.c:669: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_find_device':
bios32.c:678: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_read_config_byte':
bios32.c:687: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_read_config_word':
bios32.c:696: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_read_config_dword':
bios32.c:705: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_write_config_byte':
bios32.c:714: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_write_config_word':
bios32.c:723: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_write_config_dword':
bios32.c:732: `access_pci' undeclared (first use this function)
bios32.c: In function `pcibios_init':
bios32.c:812: `access_pci' undeclared (first use this function)
bios32.c:817: `pci_bios_access' undeclared (first use this function)
make[1]: *** [bios32.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2
[root@firestorm linux]#

I definately do NOT have PCI enabled in my config. On an inspection
of the offending file, it looks like a lot of the pci_* functions are
included due to a #endif of #ifdef CONFIG_PCI appearing about halfway
down the file. I moved it to the end of the file, and the kernel compiled
fine (mind you, it warned about two unused variables in the same file).
Dunno if it works or not yet though :-)

-- Matt

--
 #!/usr/local/bin/perl -s-- -export-a-crypto-system-sig -RSA-in-3-lines-PERL
 ($k,$n)=@ARGV;$m=unpack(H.$w,$m."\0"x$w),$_=`echo "16do$w 2+4Oi0$d*-^1[d2%
 Sa2/d0<X+d*La1=z\U$n%0]SX$k"[$m*]\EszlXx++p|dc`,s/^.|\W//g,print pack('H*'
 ,$_)while read(STDIN,$m,($w=2*$d-1+length($n||die"$0 [-d] k n\n")&~1)/2)