lkml.org 
[lkml]   [2005]   [Jan]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateTue, 25 Jan 2005 22:23:47 -0800
From"Randy.Dunlap" <>
Subject[PATCH] irq_affinity: fix build when CONFIG_PROC_FS=n
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(-)
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)
  *
\
 
 \ /
  Last update: 2005-03-22 14:09    [from the cache]
©2003-2008