From 04efa7354fab2ee900988614559b7d77b65ab2b9 Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Sat, 5 Oct 2024 22:14:29 +0300 Subject: [PATCH] cmd: irq: Move do_irqinfo() prototype to a header file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Simon Glass [trini: Add 'struct cmd_tbl;' to irq_func.h] Signed-off-by: Tom Rini --- cmd/irq.c | 3 --- include/irq_func.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/irq.c b/cmd/irq.c index 655aba576a..da223b4b2c 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 c7c4babbfc..fb2c54064c 100644 --- a/include/irq_func.h +++ b/include/irq_func.h @@ -10,6 +10,7 @@ #define __IRQ_FUNC_H struct pt_regs; +struct cmd_tbl; typedef void (interrupt_handler_t)(void *arg); @@ -23,4 +24,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.39.5