Fix build error with !SMP && !GENERIC_HARDIRQS
PATCH 1/1 Fix build error with !SMP && !GENERIC_HARDIRQS
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
CC kernel/irq/manage.okernel/irq/manage.c:41: error: expected identifier or '(' before 'asm'
This error appears because header contain other definition for synchronize_irq in include/linux/hardirq.h.
extern void synchronize_irq(unsigned int irq);
This patch fix this problem.
--- kernel/irq/manage.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/irq/manage.c +2 -0
@@ -28,6 +28,7 @@ static int __init setup_forced_irqthreads(char *arg)early_param ("threadirqs" , setup_forced_irqthreads);#endif +#if !defined(synchronize_irq)/** * synchronize_irq - wait for pending IRQ handlers (on other CPUs) * @irq: interrupt number to wait for
@@ -71,6 +72,7 @@ void synchronize_irq(unsigned int irq) wait_event(desc->wait_for_threads, !atomic_read(&desc->threads_active)); }EXPORT_SYMBOL (synchronize_irq); +#endif #ifdef CONFIG_SMP cpumask_var_t irq_default_affinity;
Signature · 1 line
1.7.3.4
Quoted 2 lines · Alexander Shiyan
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
Is this on uniprocessor s390?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Fri, 23 Mar 2012 08:46:15 +0100 от Geert Uytterhoeven <[email protected]>:
Quoted 4 lines · Alexander Shiyan
Quoted 2 lines
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
Is this on uniprocessor s390?
No. I trying to fix other problem with ARM Cirrus Logic EP7312 that do not work since 2.6.30-rc1. The problem appear after commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=c61b79b6ef266890954213a701d8f6021d8c1289
I just playing with this commit and found this compile error.���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Quoted 10 lines · Alexander Shiyan
Fri, 23 Mar 2012 08:46:15 +0100 от Geert Uytterhoeven <[email protected]>:
Quoted 4 lines · Alexander Shiyan
Quoted 2 lines
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
Is this on uniprocessor s390?
No. I trying to fix other problem with ARM Cirrus Logic EP7312 that do not work since 2.6.30-rc1. The problem appear after commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=c61b79b6ef266890954213a701d8f6021d8c1289I just playing with this commit and found this compile error.
Which was probably caused by you playing with that commit.
Again arch/arm has GENERIC_HARDIRQS=y and therefor the problem does not exist. For GENERIC_HARDIRQS=n that file is not compiled.
Ergo: -ENOPROBLEM
Thanks,
tglx
Quoted 6 lines · Alexander Shiyan
Fri, 23 Mar 2012 08:46:15 +0100 от Geert Uytterhoeven <[email protected]>:
Quoted 4 lines · Alexander Shiyan
Quoted 2 lines
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
Is this on uniprocessor s390?
No. I trying to fix other problem with ARM Cirrus Logic EP7312 that do not work since 2.6.30-rc1.
Then it should not happen, as s390 is the sole remaining arch that doesn't use generic hardirqs.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 10 lines · Alexander Shiyan
When compile kernel with !SMP && !GENERIC_HARDIRQS we are have following error:
CCkernel/irq/manage.okernel/irq/manage.c:41: error: expected identifier or '(' before 'asm'This error appears because header contain other definition for
synchronize_irqininclude/linux/hardirq.h.
extern voidsynchronize_irq(unsigned int irq);This patch fix this problem.
Errm, which problem ?
kernel/irq/* is not compiled at all when CONFIG_GENERIC_HARDIRQS=n.
So nothing to fix here.
Thanks,
tglx