From: Steven Rostedt Do not trace arch_local_save_flags(), arch_local_irq_*() and friends. Although they are marked inline, gcc may still make a function out of them and add it to the pool of functions that are traced by the function tracer. This can cause undesirable results (kernel panic, triple faults, etc). Add the notrace notation to prevent them from ever being traced. Cc: Russell King Signed-off-by: Steven Rostedt --- arch/arm/include/asm/irqflags.h | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/include/asm/irqflags.h b/arch/arm/include/asm/irqflags.h index 1e6cca5..b633507 100644 --- a/arch/arm/include/asm/irqflags.h +++ b/arch/arm/include/asm/irqflags.h @@ -10,7 +10,7 @@ */ #if __LINUX_ARM_ARCH__ >= 6 -static inline unsigned long arch_local_irq_save(void) +static inline notrace unsigned long arch_local_irq_save(void) { unsigned long flags; @@ -21,7 +21,7 @@ static inline unsigned long arch_local_irq_save(void) return flags; } -static inline void arch_local_irq_enable(void) +static inline notrace void arch_local_irq_enable(void) { asm volatile( " cpsie i @ arch_local_irq_enable" @@ -30,7 +30,7 @@ static inline void arch_local_irq_enable(void) : "memory", "cc"); } -static inline void arch_local_irq_disable(void) +static inline notrace void arch_local_irq_disable(void) { asm volatile( " cpsid i @ arch_local_irq_disable" @@ -46,7 +46,7 @@ static inline void arch_local_irq_disable(void) /* * Save the current interrupt enable state & disable IRQs */ -static inline unsigned long arch_local_irq_save(void) +static inline notrace unsigned long arch_local_irq_save(void) { unsigned long flags, temp; @@ -63,7 +63,7 @@ static inline unsigned long arch_local_irq_save(void) /* * Enable IRQs */ -static inline void arch_local_irq_enable(void) +static inline notrace void arch_local_irq_enable(void) { unsigned long temp; asm volatile( @@ -78,7 +78,7 @@ static inline void arch_local_irq_enable(void) /* * Disable IRQs */ -static inline void arch_local_irq_disable(void) +static inline notrace void arch_local_irq_disable(void) { unsigned long temp; asm volatile( @@ -125,7 +125,7 @@ static inline void arch_local_irq_disable(void) /* * Save the current interrupt enable state. */ -static inline unsigned long arch_local_save_flags(void) +static inline notrace unsigned long arch_local_save_flags(void) { unsigned long flags; asm volatile( @@ -137,7 +137,7 @@ static inline unsigned long arch_local_save_flags(void) /* * restore saved IRQ & FIQ state */ -static inline void arch_local_irq_restore(unsigned long flags) +static inline notrace void arch_local_irq_restore(unsigned long flags) { asm volatile( " msr cpsr_c, %0 @ local_irq_restore" @@ -146,7 +146,7 @@ static inline void arch_local_irq_restore(unsigned long flags) : "memory", "cc"); } -static inline int arch_irqs_disabled_flags(unsigned long flags) +static inline notrace int arch_irqs_disabled_flags(unsigned long flags) { return flags & PSR_I_BIT; } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/