[PATCH] Add missing include of linux/ftrace.h

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Oct 1 12:35:11 EDT 2011


On Thu, Sep 29, 2011 at 04:13:22PM +0100, Jamie Iles wrote:
> __exception_irq_entry uses __irq_entry which is defined in
> linux/ftrace.h.
> 
> Reported-by: Zoltan Devai <zdevai at gmail.com>
> Cc: Rabin Vincent <rabin at rab.in>
> Signed-off-by: Jamie Iles <jamie at jamieiles.com>

This introduces a circular dependency:

linux/ftrace.h -> linux/kallsyms.h -> linux/kernel.h -> linux/bitops.h
 -> asm/bitops.h -> asm/system.h -> linux/ftrace.h

This is not good as it means that we end up with indeterminant effects
happening depending on where in that cycle the first include happens.



More information about the linux-arm-kernel mailing list