From: Coywolf Qi Hunt <coywolf@gmail.com>
To: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Andi Kleen <ak@muc.de>, Adrian Bunk <bunk@stusta.de>
Subject: Re: 2.6.12-rc3-mm1
Date: Sun, 1 May 2005 01:05:52 +0800 [thread overview]
Message-ID: <2cd57c9005043010051c6455fb@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0504300940560.12903@montezuma.fsmlabs.com>
On 5/1/05, Zwane Mwaikambo <zwane@arm.linux.org.uk> wrote:
> On Sat, 30 Apr 2005, Adrian Bunk wrote:
>
> > The static inline set_irq_info() is not available
> > for CONFIG_GENERIC_PENDING_IRQ=n, resulting in the following warning:
>
> This could have been compile tested more :/
>
> > CC arch/i386/kernel/io_apic.o
> > arch/i386/kernel/io_apic.c: In function `set_ioapic_affinity_irq':
> > arch/i386/kernel/io_apic.c:251: warning: implicit declaration of function `set_irq_info'
> > ...
> >
> > <-- snip -->
> >
> >
> > The second bug is that although irq.h defines set_irq_info() as a static
> > inline, this patch adds an empty function to kernel/irq/manage.c .
>
> That stuff shouldn't even be built on UP (altough it does provide more
> coverage)
>
> Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
>
> Index: linux-2.6.12-rc3-mm1-up/arch/i386/kernel/io_apic.c
> ===================================================================
> RCS file: /home/cvsroot/linux-2.6.12-rc3-mm1/arch/i386/kernel/io_apic.c,v
> retrieving revision 1.1.1.1
> diff -u -p -B -r1.1.1.1 io_apic.c
> --- linux-2.6.12-rc3-mm1-up/arch/i386/kernel/io_apic.c 30 Apr 2005 15:29:08 -0000 1.1.1.1
> +++ linux-2.6.12-rc3-mm1-up/arch/i386/kernel/io_apic.c 30 Apr 2005 16:19:06 -0000
> @@ -221,6 +221,7 @@ static void clear_IO_APIC (void)
> clear_IO_APIC_pin(apic, pin);
> }
>
> +#ifdef CONFIG_SMP
> static void set_ioapic_affinity_irq(unsigned int irq, cpumask_t cpumask)
> {
> unsigned long flags;
> @@ -252,8 +253,6 @@ static void set_ioapic_affinity_irq(unsi
> spin_unlock_irqrestore(&ioapic_lock, flags);
> }
>
> -#ifdef CONFIG_SMP
> -
> #if defined(CONFIG_IRQBALANCE)
> # include <asm/processor.h> /* kernel_thread() */
> # include <linux/kernel_stat.h> /* kstat */
> @@ -816,6 +815,7 @@ int IO_APIC_get_PCI_irq_vector(int bus,
> * we need to reprogram the ioredtbls to cater for the cpus which have come online
> * so mask in all cases should simply be TARGET_CPUS
> */
> +#ifdef CONFIG_SMP
> void __init setup_ioapic_dest(void)
> {
> int pin, ioapic, irq, irq_entry;
> @@ -834,6 +834,7 @@ void __init setup_ioapic_dest(void)
>
> }
> }
> +#endif
>
> /*
> * EISA Edge/Level control register, ELCR
> @@ -1973,6 +1974,7 @@ static void unmask_IO_APIC_vector (unsig
> unmask_IO_APIC_irq(irq);
> }
>
> +#ifdef CONFIG_SMP
> static void set_ioapic_affinity_vector (unsigned int vector,
> cpumask_t cpu_mask)
> {
> @@ -1982,6 +1984,7 @@ static void set_ioapic_affinity_vector (
> set_ioapic_affinity_irq(irq, cpu_mask);
> }
> #endif
> +#endif
>
> /*
> * Level and edge triggered IO-APIC interrupts need different handling,
> @@ -1999,7 +2002,9 @@ static struct hw_interrupt_type ioapic_e
> .disable = disable_edge_ioapic,
> .ack = ack_edge_ioapic,
> .end = end_edge_ioapic,
> +#ifdef CONFIG_SMP
> .set_affinity = set_ioapic_affinity,
> +#endif
> };
>
> static struct hw_interrupt_type ioapic_level_type = {
> @@ -2010,7 +2015,9 @@ static struct hw_interrupt_type ioapic_l
> .disable = disable_level_ioapic,
> .ack = mask_and_ack_level_ioapic,
> .end = end_level_ioapic,
> +#ifdef CONFIG_SMP
> .set_affinity = set_ioapic_affinity,
> +#endif
> };
>
> static inline void init_IO_APIC_traps(void)
I was trying to fix this too. You are quicker and better than me. In
addition, this redundant include should be removed.
diff -pruN 2.6.12-rc3-mm1/arch/i386/kernel/io_apic.c
2.6.12-rc3-mm1-cy2/arch/i386/kernel/io_apic.c
--- 2.6.12-rc3-mm1/arch/i386/kernel/io_apic.c 2005-04-30
19:15:46.000000000 +0800
+++ 2.6.12-rc3-mm1-cy2/arch/i386/kernel/io_apic.c 2005-05-01
00:49:27.000000000 +0800
@@ -32,7 +32,6 @@
#include <linux/compiler.h>
#include <linux/acpi.h>
#include <linux/sysdev.h>
-#include <linux/irq.h>
#include <asm/io.h>
#include <asm/smp.h>
#include <asm/desc.h>
--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/
next prev parent reply other threads:[~2005-04-30 17:08 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-30 6:16 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 9:40 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:30 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 10:38 ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:10 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 11:26 ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 11:52 ` [-mm patch] SIS900 must select MII Adrian Bunk
2005-05-01 16:43 ` Daniele Venzano
2005-05-15 22:24 ` Jeff Garzik
2005-04-30 12:27 ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 22:08 ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-04-30 22:36 ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 22:51 ` 2.6.12-rc3-mm1 Jesper Juhl
2005-04-30 22:53 ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-04-30 23:05 ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 23:10 ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-01 13:09 ` 2.6.12-rc3-mm1 Ed Tomlinson
2005-05-01 13:30 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-05-02 15:28 ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 15:49 ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 16:11 ` 2.6.12-rc3-mm1 Valdis.Kletnieks
2005-05-02 22:20 ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-02 22:39 ` 2.6.12-rc3-mm1 Olivier Galibert
2005-05-03 0:34 ` 2.6.12-rc3-mm1 Randy.Dunlap
2005-05-02 22:41 ` 2.6.12-rc3-mm1 Frank Sorenson
2005-05-03 16:02 ` 2.6.12-rc3-mm1 Bill Davidsen
2005-05-01 13:19 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 12:46 ` 2.6.12-rc3-mm1 doesn't boot Adrian Bunk
2005-04-30 12:57 ` Carlos Martin
2005-04-30 13:25 ` 2.6.12-rc3-mm1 Alexander Nyberg
2005-04-30 13:50 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 14:07 ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 15:04 ` 2.6.12-rc3-mm1 Russell King
2005-04-30 19:49 ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 22:03 ` 2.6.12-rc3-mm1 Richard Purdie
2005-04-30 14:20 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 16:43 ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 17:05 ` Coywolf Qi Hunt [this message]
2005-04-30 18:08 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:56 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 19:46 ` 2.6.12-rc3-mm1 Andrew Morton
2005-04-30 20:01 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-05-08 3:53 ` 2.6.12-rc3-mm1 Li Shaohua
2005-04-30 18:30 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 18:58 ` 2.6.12-rc3-mm1 Adrian Bunk
2005-04-30 15:29 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 15:39 ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:44 ` 2.6.12-rc3-mm1 Brice Goglin
2005-04-30 16:02 ` 2.6.12-rc3-mm1 Zwane Mwaikambo
2005-04-30 15:48 ` 2.6.12-rc3-mm1 Carlos Martin
2005-04-30 15:48 ` 2.6.12-rc3-mm1 Coywolf Qi Hunt
2005-04-30 23:34 ` 2.6.12-rc3-mm1 (a-new-10gb-ethernet-driver-by-chelsio-communications.patch) Alexey Dobriyan
-- strict thread matches above, loose matches on Subject: below --
2005-05-01 8:49 2.6.12-rc3-mm1 Li, Shaohua
[not found] <fa.gbejpad.1vj8f9r@ifi.uio.no>
2005-05-03 9:00 ` 2.6.12-rc3-mm1 Reuben Farrelly
2005-05-03 9:07 ` 2.6.12-rc3-mm1 Andrew Morton
2005-05-03 9:49 ` 2.6.12-rc3-mm1 Reuben Farrelly
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=2cd57c9005043010051c6455fb@mail.gmail.com \
--to=coywolf@gmail.com \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=coywolf@lovecn.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@arm.linux.org.uk \
/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