ARM: <asm/floppy.h>: fix build with sparse IRQs
Subsystems (2)
PATCH 1/1 ARM: <asm/floppy.h>: fix build with sparse IRQs
If sparse IRQs are enabled, <mach/irqs.h> is no longer implicitly included when building the floppy driver. This causes the build to fail because IRQ_FLOPPYDISK, which is used by <asm/floppy.h>, is no longer defined. Fix this issue by including <mach/irqs.h> from <asm/floppy.h>. The only machines that select ARCH_MAY_HAVE_PC_FDC (and thus use <asm/floppy.h>) are footbridge and rpc, both of which have <mach/irqs.h>.
Signed-off-by Ethan Nelson-Moore <[email protected]>
--- arch/arm/include/asm/floppy.h | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/include/asm/floppy.h +3 -0
@@ -6,6 +6,9 @@* * Note that we don't touch FLOPPY_DMA nor FLOPPY_IRQ here */ + +#include <mach/irqs.h> /* for IRQ_FLOPPYDISK */ +#ifndef __ASM_ARM_FLOPPY_H#define __ASM_ARM_FLOPPY_H
Signature · 1 line
2.43.0