* [PATCH] irq_affinity: fix build when CONFIG_PROC_FS=n
@ 2005-01-26 6:23 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2005-01-26 6:23 UTC (permalink / raw)
To: mingo, akpm, lkml
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
Need 'irq_affinity' array when CONFIG_PROC_FS=n.
With CONFIG_PROC_FS=n, the irq_affinity[NR_IRQS] array
is not available in arch/i386/kernel code:
arch/i386/kernel/built-in.o(.text+0x10037): In function `do_irq_balance':
: undefined reference to `irq_affinity'
arch/i386/kernel/built-in.o(.text+0x101a9): In function `do_irq_balance':
: undefined reference to `irq_affinity'
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
kernel/irq/manage.c | 2 ++
kernel/irq/proc.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
[-- Attachment #2: irq_affinity_data.patch --]
[-- Type: text/x-patch, Size: 914 bytes --]
diff -Naurp ./kernel/irq/proc.c~irq_affinity ./kernel/irq/proc.c
--- ./kernel/irq/proc.c~irq_affinity 2004-12-24 13:34:29.000000000 -0800
+++ ./kernel/irq/proc.c 2005-01-25 20:53:45.581952208 -0800
@@ -19,8 +19,6 @@ static struct proc_dir_entry *root_irq_d
*/
static struct proc_dir_entry *smp_affinity_entry[NR_IRQS];
-cpumask_t irq_affinity[NR_IRQS] = { [0 ... NR_IRQS-1] = CPU_MASK_ALL };
-
static int irq_affinity_read_proc(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
diff -Naurp ./kernel/irq/manage.c~irq_affinity ./kernel/irq/manage.c
--- ./kernel/irq/manage.c~irq_affinity 2004-12-24 13:35:50.000000000 -0800
+++ ./kernel/irq/manage.c 2005-01-25 20:54:09.753277608 -0800
@@ -15,6 +15,8 @@
#ifdef CONFIG_SMP
+cpumask_t irq_affinity[NR_IRQS] = { [0 ... NR_IRQS-1] = CPU_MASK_ALL };
+
/**
* synchronize_irq - wait for pending IRQ handlers (on other CPUs)
*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-26 6:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 6:23 [PATCH] irq_affinity: fix build when CONFIG_PROC_FS=n Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox