mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
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 <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Add 'struct cmd_tbl;' to irq_func.h] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
c01d6934a7
commit
04efa7354f
2 changed files with 4 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue