diff options
| author | Andy Shevchenko <[email protected]> | 2024-10-05 22:14:29 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-17 15:38:50 -0600 |
| commit | 04efa7354fab2ee900988614559b7d77b65ab2b9 (patch) | |
| tree | c0e63772572be3ff906c1378ef2ab165fe292773 /include/irq_func.h | |
| parent | c01d6934a7d7ceb8e16cd791e7451e6d94161562 (diff) | |
cmd: irq: Move do_irqinfo() prototype to a header file
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
[trini: Add 'struct cmd_tbl;' to irq_func.h]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/irq_func.h')
| -rw-r--r-- | include/irq_func.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/irq_func.h b/include/irq_func.h index c7c4babbfc9..fb2c54064c8 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 |
