Skip to contentSkip to conversation

ARM: <asm/floppy.h>: fix build with sparse IRQs

PATCH New Ethan Nelson-Moore 1 participant 1 message May 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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>.

---
 arch/arm/include/asm/floppy.h | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/include/asm/floppy.h +3 -0
index e579f77162e9..4fdc3f633b1e 100644
@@ -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