[PATCH v1 1/1] cmd: irq: Move do_irqinfo() prototype to a header file

Andy Shevchenko andriy.shevchenko at linux.intel.com
Sat Oct 5 21:14:29 CEST 2024


Move do_irqinfo() prototype to a header file, otherwise compiler is not
happy:

  arch/x86/lib/interrupts.c:130:5: warning: no previous prototype for ‘do_irqinfo’ [-Wmissing-prototypes]

Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
---
 cmd/irq.c          | 3 ---
 include/irq_func.h | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/irq.c b/cmd/irq.c
index 655aba576a8b..da223b4b2cce 100644
--- a/cmd/irq.c
+++ b/cmd/irq.c
@@ -29,9 +29,6 @@ U_BOOT_CMD(
 	"[on, off]"
 );
 
-/* Implemented in $(CPU)/interrupts.c */
-int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
-
 U_BOOT_CMD(
 	irqinfo,    1,    1,     do_irqinfo,
 	"print information about IRQs",
diff --git a/include/irq_func.h b/include/irq_func.h
index c7c4babbfc90..28ec0bd83038 100644
--- a/include/irq_func.h
+++ b/include/irq_func.h
@@ -23,4 +23,7 @@ void reset_timer(void);
 void enable_interrupts(void);
 int disable_interrupts(void);
 
+/* Implemented in $(CPU)/interrupts.c */
+int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
+
 #endif
-- 
2.43.0.rc1.1336.g36b5255a03ac



More information about the U-Boot mailing list