* [patch 2.6.19-rc2] Correct definition of handle_IPI
@ 2006-10-18 5:36 Keith Owens
2006-10-18 10:10 ` David Howells
0 siblings, 1 reply; 2+ messages in thread
From: Keith Owens @ 2006-10-18 5:36 UTC (permalink / raw)
To: linux-ia64
The declaration of handle_IPI in arch/ia64/kernel/smp.c was changed but
not the definition of this function. Remove struct pt_regs from
handle_IPI().
The declaration of handle_IPI should really be in a header file instead
of a .c file, but which one? Adding
extern irqreturn_t handle_IPI(int irq, void *dev_id);
to include/asm-ia64/smp.h is the obvious place but that leads to
include hell. Using irqreturn_t requires linux/interrupt.h which
leads to a recursive mess. sched.h includes smp.h quit early, adding
interrupt.h to smp.h uses data from sched.h before most of sched.h is
expanded.
CC arch/ia64/kernel/asm-offsets.s
In file included from linux/include/linux/hardirq.h:5,
from linux/include/linux/interrupt.h:11,
from include/asm-ia64/smp.h:17,
from linux/include/linux/smp.h:18,
from linux/include/linux/sched.h:65,
from linux/arch/ia64/kernel/asm-offsets.c:9:
linux/include/linux/smp_lock.h: In function reacquire_kernel_lock:
linux/include/linux/smp_lock.h:35: error: dereferencing pointer to incomplete type
In file included from linux/include/linux/slab.h:14,
from linux/include/linux/percpu.h:5,
from linux/include/asm-generic/irq_regs.h:15,
from include/asm-ia64/irq_regs.h:1,
from linux/include/linux/irq.h:24,
from include/asm-ia64/hardirq.h:11,
from linux/include/linux/hardirq.h:7,
from linux/include/linux/interrupt.h:11,
from include/asm-ia64/smp.h:17,
from linux/include/linux/smp.h:18,
from linux/include/linux/sched.h:65,
from linux/arch/ia64/kernel/asm-offsets.c:9:
linux/include/linux/gfp.h: In function alloc_pages_node:
linux/include/linux/gfp.h:131: warning: implicit declaration of function raw_smp_processor_id
In file included from linux/include/linux/irq.h:185,
from include/asm-ia64/hardirq.h:11,
from linux/include/linux/hardirq.h:7,
from linux/include/linux/interrupt.h:11,
from include/asm-ia64/smp.h:17,
from linux/include/linux/smp.h:18,
from linux/include/linux/sched.h:65,
from linux/arch/ia64/kernel/asm-offsets.c:9:
include/asm-ia64/hw_irq.h: In function ia64_resend_irq:
include/asm-ia64/hw_irq.h:102: warning: implicit declaration of function smp_processor_id
make[2]: *** [arch/ia64/kernel/asm-offsets.s] Error 1
Signed-off-by: Keith Owens <kaos@sgi.com>
---
Sorry for any duplicates. Cut and paste of color gcc messages into
exmh generates MIME8 messages which then get rejected by vger's
bogofilter.
arch/ia64/kernel/smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/arch/ia64/kernel/smp.c
=================================--- linux.orig/arch/ia64/kernel/smp.c
+++ linux/arch/ia64/kernel/smp.c
@@ -108,7 +108,7 @@ cpu_die(void)
}
irqreturn_t
-handle_IPI (int irq, void *dev_id, struct pt_regs *regs)
+handle_IPI (int irq, void *dev_id)
{
int this_cpu = get_cpu();
unsigned long *pending_ipis = &__ia64_per_cpu_var(ipi_operation);
--k9I8DriA003673.1161159233/omx2.sgi.com--
------- End of Forwarded Message
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 2.6.19-rc2] Correct definition of handle_IPI
2006-10-18 5:36 [patch 2.6.19-rc2] Correct definition of handle_IPI Keith Owens
@ 2006-10-18 10:10 ` David Howells
0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2006-10-18 10:10 UTC (permalink / raw)
To: linux-ia64
Keith Owens <kaos@sgi.com> wrote:
> The declaration of handle_IPI should really be in a header file instead
> of a .c file, but which one? Adding
>
> extern irqreturn_t handle_IPI(int irq, void *dev_id);
Stick it in arch/ia64/kernel/internal.h. That way it'll not be directly
exposed to the rest of the kernel. Then #include that file from interested
parties in that directory.
Otherwise your patch looks reasonable.
Acked-By: David Howells <dhowells@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-18 10:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 5:36 [patch 2.6.19-rc2] Correct definition of handle_IPI Keith Owens
2006-10-18 10:10 ` David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox