From: Matt Reppert <arashi@arashi.yi.org>
To: Maciej Soltysiak <solt@dns.toxicfilms.tv>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Is this patch okay?
Date: Wed, 4 Dec 2002 15:27:43 -0600 [thread overview]
Message-ID: <20021204152743.2f5c28fd.arashi@arashi.yi.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0212042140540.4031-100000@dns.toxicfilms.tv>
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
prev parent reply other threads:[~2002-12-04 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-04 20:46 Maciej Soltysiak
2002-12-04 21:27 ` Matt Reppert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021204152743.2f5c28fd.arashi@arashi.yi.org \
--to=arashi@arashi.yi.org \
--cc=linux-kernel@vger.kernel.org \
--cc=solt@dns.toxicfilms.tv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®