From: Ethan Nelson-Moore <enelsonmoore@gmail.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: Russell King <linux@armlinux.org.uk>,
Ethan Nelson-Moore <enelsonmoore@gmail.com>,
Ian Molton <spyro@f2s.com>
Subject: [PATCH] ARM: <asm/floppy.h>: fix build with sparse IRQs
Date: Sat, 9 May 2026 20:23:51 -0700 [thread overview]
Message-ID: <20260510032352.269127-1-enelsonmoore@gmail.com> (raw)
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
reply other threads:[~2026-05-10 3:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260510032352.269127-1-enelsonmoore@gmail.com \
--to=enelsonmoore@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=spyro@f2s.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.