* [PATCH] ARM: <asm/floppy.h>: fix build with sparse IRQs
@ 2026-05-10 3:23 Ethan Nelson-Moore
0 siblings, 0 replies; only message in thread
From: Ethan Nelson-Moore @ 2026-05-10 3:23 UTC (permalink / raw)
To: linux-arm-kernel, linux-kernel
Cc: Russell King, Ethan Nelson-Moore, Ian Molton
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 <enelsonmoore@gmail.com>
---
arch/arm/include/asm/floppy.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/include/asm/floppy.h b/arch/arm/include/asm/floppy.h
index e579f77162e9..4fdc3f633b1e 100644
--- a/arch/arm/include/asm/floppy.h
+++ b/arch/arm/include/asm/floppy.h
@@ -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
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-10 3:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10 3:23 [PATCH] ARM: <asm/floppy.h>: fix build with sparse IRQs Ethan Nelson-Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox