Skip to content

Commit

Permalink
powerpc: Fix potential compile error irqs_disabled_flags
Browse files Browse the repository at this point in the history
irqs_disabled_flags is #defined in linux/irqflags.h when
CONFIG_TRACE_IRQFLAGS_SUPPORT is enabled.  64 and 32 bit always have
CONFIG_TRACE_IRQFLAGS_SUPPORT enabled so just remove
irqs_disabled_flags.

This fixes the case when someone needs to include both linux/irqflags.h
and asm/hw_irq.h.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Michael Neuling authored and Benjamin Herrenschmidt committed Oct 30, 2009
1 parent 0895ecd commit 0682d6c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/powerpc/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ extern void iseries_handle_interrupts(void);
get_paca()->hard_enabled = 0; \
} while(0)

static inline int irqs_disabled_flags(unsigned long flags)
{
return flags == 0;
}

#else

#if defined(CONFIG_BOOKE)
Expand Down

0 comments on commit 0682d6c

Please sign in to comment.