From: Juergen Hasch <lkml@elbonia.de>
To: Srihari Vijayaraghavan <harisri@bigpond.com>,
linux-kernel@vger.kernel.org
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: Re: 2.6.1-rc1 compile error
Date: Thu, 1 Jan 2004 10:26:00 +0100 [thread overview]
Message-ID: <200401011026.00520.lkml@elbonia.de> (raw)
In-Reply-To: <200401010109.12005.harisri@bigpond.com>
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
Am Mittwoch, 31. Dezember 2003 15:09 schrieb Srihari Vijayaraghavan:
>
>
> Then it compiled the io_apic.c and progressed (maybe a lot). But it failed
> and showed this error message:
> LD .tmp_vmlinux1
>
> arch/i386/pci/built-in.o(.text+0xc6e): In function `pcibios_lookup_irq':
> : undefined reference to `can_request_irq'
>
> make: *** [.tmp_vmlinux1] Error 1
>
This is obviously due to can_request_irq is found in arch/i386/kernel/irq.c
and the x86_64 build just includes some stuff from arch/i386/pci/irq.c where
can_request_irq is used too.
Linus introduced this function a few weeks ago. I used the patch below to move
the function from kernel/irq.c to pci/irq.c, but he will probably fix it
himself soon.
Btw. there are a lot of other fixes for the x86_64 build from Andi Kleen which
you should apply too. However, they don't apply cleanly anymore.
...Juergen
[-- Attachment #2: can_request_irq.diff --]
[-- Type: text/x-diff, Size: 1075 bytes --]
--- arch/i386/kernel/irq.c.orig 2004-01-01 10:06:00.000000000 +0100
+++ arch/i386/kernel/irq.c 2003-12-31 13:13:58.000000000 +0100
@@ -511,19 +511,6 @@
return 1;
}
-int can_request_irq(unsigned int irq, unsigned long irqflags)
-{
- struct irqaction *action;
-
- if (irq >= NR_IRQS)
- return 0;
- action = irq_desc[irq].action;
- if (action) {
- if (irqflags & action->flags & SA_SHIRQ)
- action = NULL;
- }
- return !action;
-}
/**
* request_irq - allocate an interrupt line
--- arch/i386/pci/irq.c.orig 2004-01-01 10:06:42.000000000 +0100
+++ arch/i386/pci/irq.c 2003-12-31 13:24:35.000000000 +0100
@@ -939,6 +939,20 @@
pirq_penalty[irq] += 100;
}
+int can_request_irq(unsigned int irq, unsigned long irqflags)
+{
+ struct irqaction *action;
+
+ if (irq >= NR_IRQS)
+ return 0;
+ action = irq_desc[irq].action;
+ if (action) {
+ if (irqflags & action->flags & SA_SHIRQ)
+ action = NULL;
+ }
+ return !action;
+}
+
int pirq_enable_irq(struct pci_dev *dev)
{
u8 pin;
next prev parent reply other threads:[~2004-01-01 9:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-31 14:09 2.6.1-rc1 compile error Srihari Vijayaraghavan
2004-01-01 9:26 ` Juergen Hasch [this message]
2004-01-01 19:34 ` Linus Torvalds
[not found] <18PmG-40b-9@gated-at.bofh.it>
2004-01-01 22:01 ` Andi Kleen
2004-01-03 2:09 ` Srihari Vijayaraghavan
2004-01-03 2:51 ` Andi Kleen
2004-01-03 4:22 ` Srihari Vijayaraghavan
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=200401011026.00520.lkml@elbonia.de \
--to=lkml@elbonia.de \
--cc=harisri@bigpond.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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