Re: [PATCH] Fix build error with !SMP && !GENERIC_HARDIRQS

From: Thomas Gleixner
Date: Fri Mar 23 2012 - 05:09:08 EST


On Fri, 23 Mar 2012, Alexander Shiyan wrote:

> When compile kernel with !SMP && !GENERIC_HARDIRQS we are have
> following error:
> CC kernel/irq/manage.o
> kernel/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.

Errm, which problem ?

kernel/irq/* is not compiled at all when CONFIG_GENERIC_HARDIRQS=n.

So nothing to fix here.

Thanks,

tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/