mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* error in quirks.c
@ 2002-11-28  7:27 Pawel Bernadowski
  2002-11-28  9:35 ` Alex Riesen
  0 siblings, 1 reply; 2+ messages in thread
From: Pawel Bernadowski @ 2002-11-28  7:27 UTC (permalink / raw)
  To: linux-kernel

I use 2.5.50 and always get this error
  gcc -Wp,-MD,drivers/pci/.quirks.o.d -D__KERNEL__ -Iinclude -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
-Iarch/i386/mach-generic -nostdinc -iwithprefix include    
-DKBUILD_BASENAME=quirks -DKBUILD_MODNAME=quirks   -c -o 
drivers/pci/quirks.o drivers/pci/quirks.c
drivers/pci/quirks.c: In function `quirk_ioapic_rmw':
drivers/pci/quirks.c:354: `sis_apic_bug' undeclared (first use in this 
function)
drivers/pci/quirks.c:354: (Each undeclared identifier is reported only 
once
drivers/pci/quirks.c:354: for each function it appears in.)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error in quirks.c
  2002-11-28  7:27 error in quirks.c Pawel Bernadowski
@ 2002-11-28  9:35 ` Alex Riesen
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Riesen @ 2002-11-28  9:35 UTC (permalink / raw)
  To: Pawel Bernadowski; +Cc: linux-kernel, Alan Cox

On Thu, Nov 28, 2002 at 08:27:09AM +0100, Pawel Bernadowski wrote:
> I use 2.5.50 and always get this error
>   gcc -Wp,-MD,drivers/pci/.quirks.o.d -D__KERNEL__ -Iinclude -Wall 
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
> -Iarch/i386/mach-generic -nostdinc -iwithprefix include    
> -DKBUILD_BASENAME=quirks -DKBUILD_MODNAME=quirks   -c -o 
> drivers/pci/quirks.o drivers/pci/quirks.c
> drivers/pci/quirks.c: In function `quirk_ioapic_rmw':
> drivers/pci/quirks.c:354: `sis_apic_bug' undeclared (first use in this 

You have IO-APIC enabled.
Alan posted a similar patch somewhere before, just in case here is the fix
for quirks.c:


--- 2.5.50+bk/drivers/pci/quirks.c	2002-11-26 06:03:51.000000000 +0100
+++ 2.5.50/drivers/pci/quirks.c	2002-11-28 10:29:37.000000000 +0100
@@ -350,6 +350,7 @@
 
 static void __init quirk_ioapic_rmw(struct pci_dev *dev)
 {
+	extern int sis_apic_bug;
 	if (dev->devfn == 0 && dev->bus->number == 0)
 		sis_apic_bug = 1;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-28  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-28  7:27 error in quirks.c Pawel Bernadowski
2002-11-28  9:35 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®