From: "Randy.Dunlap" <rddunlap@osdl.org>
To: mingo@redhat.com, akpm <akpm@osdl.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] irq_affinity: fix build when CONFIG_PROC_FS=n
Date: Tue, 25 Jan 2005 22:23:47 -0800 [thread overview]
Message-ID: <41F73773.2020905@osdl.org> (raw)
[-- 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)
*
reply other threads:[~2005-01-26 6:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41F73773.2020905@osdl.org \
--to=rddunlap@osdl.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.