Skip to content

Commit ec17748

Browse files
DerDakongeertu
authored andcommitted
m68k: Add missing types to asm/irq.h
As reported in commit f8b648b ("net: sunhme: move asm includes to below linux includes") when including this <asm/*> header before the needed <linux/*> headers the compilation will fail because of missing types: arch/m68k/include/asm/irq.h:66:20: warning: ‘struct pt_regs’ declared inside parameter list will not be visible outside of this definition or declaration 66 | struct pt_regs *)); | ^~~~~~~ arch/m68k/include/asm/irq.h:78:11: error: expected ‘;’ before ‘void’ 78 | asmlinkage void do_IRQ(int irq, struct pt_regs *regs); | ^~~~~ | ; arch/m68k/include/asm/irq.h:78:40: warning: ‘struct pt_regs’ declared inside parameter list will not be visible outside of this definition or declaration 78 | asmlinkage void do_IRQ(int irq, struct pt_regs *regs); | ^~~~~~~ arch/m68k/include/asm/irq.h:79:8: error: unknown type name ‘atomic_t’ 79 | extern atomic_t irq_err_count; | ^~~~~~~~ Signed-off-by: Rolf Eike Beer <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent c50b1fc commit ec17748

File tree

1 file changed

+5
-0
lines changed
  • arch/m68k/include/asm

1 file changed

+5
-0
lines changed

arch/m68k/include/asm/irq.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#ifndef _M68K_IRQ_H_
33
#define _M68K_IRQ_H_
44

5+
#include <linux/atomic.h>
6+
#include <linux/linkage.h>
7+
58
/*
69
* This should be the same as the max(NUM_X_SOURCES) for all the
710
* different m68k hosts compiled into the kernel.
@@ -59,6 +62,8 @@
5962
struct irq_data;
6063
struct irq_chip;
6164
struct irq_desc;
65+
struct pt_regs;
66+
6267
extern unsigned int m68k_irq_startup(struct irq_data *data);
6368
extern unsigned int m68k_irq_startup_irq(unsigned int irq);
6469
extern void m68k_irq_shutdown(struct irq_data *data);

0 commit comments

Comments
 (0)