bug in linux-2.2.13pre7, arch/i386/kernel/setup.c doesn't compile

David Dyck (dcd@tc.fluke.com)
Mon, 13 Sep 1999 18:17:46 -0700 (PDT)


arch/i386/kernel/setup.c doesn't compile if CONFIG_PCI without CONFIG_PCI_QUIRKS

A workaround would be to define CONFIG_PCI_QUIRKS

The code in ./arch/i386/kernel/setup.c
needs to check if CONFIG_PCI_QUIRKS is defined
before assigning to isa_dma_bridge_buggy
on line 642.

I'd send a patch, but I don't know the best solution yet.
I just know that I had
CONFIG_PCI=y
# CONFIG_PCI_QUIRKS is not set
in .config and got the following error

Perhaps the #ifdef should have been for CONFIG_PCI_QUIRKS
instead of CONFIG_PCI or what exactly should be done when
the kernel detects the Cyrix MediaGX magic needs to be applied
but since CONFIG_PCI_QUIRKS wasn't defined the kernel can't set
isa_dma_bridge_buggy (a constant 0) to 1,


include/asm-i386/dma.h

#ifdef CONFIG_PCI_QUIRKS
extern int isa_dma_bridge_buggy;
#else
#define isa_dma_bridge_buggy (0)
#endif



gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o setup.o setup.c
setup.c: In function `cyrix_model':
setup.c:642: invalid lvalue in assignment
make[1]: *** [setup.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.2.13pre7/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

dd:linux-2.2.13pre7$ g CONFIG_PCI_QUIRKS .co*
# CONFIG_PCI_QUIRKS is not set

!h

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/