* Is this patch okay?
@ 2002-12-04 20:46 Maciej Soltysiak
2002-12-04 21:27 ` Matt Reppert
0 siblings, 1 reply; 2+ messages in thread
From: Maciej Soltysiak @ 2002-12-04 20:46 UTC (permalink / raw)
To: linux-kernel
Hello,
i downloaded 2.5.50, started compiling it, and it bailed out with an error
in drivers/pci/quirks.c, that sis_apic_bug is not defined.
I did a quick grep around the source and found a file to include.
Basically, this is what i did.
*** linux-2.5.50.old/drivers/pci/quirks.c Wed Nov 27 23:35:48 2002
--- linux-2.5.50/drivers/pci/quirks.c Wed Dec 4 21:40:44 2002
***************
*** 18,23 ****
--- 18,24 ----
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/delay.h>
+ #include <asm/io_apic.h>
#undef DEBUG
Is it okay to include it like that?
Or should it be fixed some other way? I am just getting around the kernel,
though the kernel has one my small patch, i am definitelly no guru.
I guess that some people have already noticed that, so if this has been
resolved, please ignore the patch.
I would appreciate any answer anyway.
Best Regards,
Maciej Soltysiak
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is this patch okay?
2002-12-04 20:46 Is this patch okay? Maciej Soltysiak
@ 2002-12-04 21:27 ` Matt Reppert
0 siblings, 0 replies; 2+ messages in thread
From: Matt Reppert @ 2002-12-04 21:27 UTC (permalink / raw)
To: Maciej Soltysiak; +Cc: linux-kernel
On Wed, 4 Dec 2002 21:46:54 +0100 (CET)
Maciej Soltysiak <solt@dns.toxicfilms.tv> wrote:
> Hello,
>
> i downloaded 2.5.50, started compiling it, and it bailed out with an error
> in drivers/pci/quirks.c, that sis_apic_bug is not defined.
> I did a quick grep around the source and found a file to include.
>
> Basically, this is what i did.
>
> *** linux-2.5.50.old/drivers/pci/quirks.c Wed Nov 27 23:35:48 2002
> --- linux-2.5.50/drivers/pci/quirks.c Wed Dec 4 21:40:44 2002
> ***************
> *** 18,23 ****
> --- 18,24 ----
> #include <linux/pci.h>
> #include <linux/init.h>
> #include <linux/delay.h>
> + #include <asm/io_apic.h>
>
> #undef DEBUG
>
> Is it okay to include it like that?
> Or should it be fixed some other way? I am just getting around the kernel,
> though the kernel has one my small patch, i am definitelly no guru.
Hi, the fix in the -ac tree for this is to put "extern int sis_apic_bug;"
directly before its usage. Including <asm/io_apic.h> is incorrect because
while this file will compile on several platforms, io_apic.h only exists
on i386 and x86_64, so this would break on, say, Alpha.
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-04 21:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-04 20:46 Is this patch okay? Maciej Soltysiak
2002-12-04 21:27 ` Matt Reppert
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®