Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b2873ba authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

m68k: irq_node.handler() should return irqreturn_t



commit b5dc7840 ("m68k: introduce irq
controller") reverted the return type of struct irq_node.handler() from
irqreturn_t to int. Change it back to irqreturn_t, else it will give a
compiler warning when irqreturn_t is turned into an enum in the near future:

| arch/m68k/kernel/ints.c:231: warning: assignment from incompatible pointer type

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 95fde7a8
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3,6 +3,7 @@


#include <linux/linkage.h>
#include <linux/linkage.h>
#include <linux/hardirq.h>
#include <linux/hardirq.h>
#include <linux/irqreturn.h>
#include <linux/spinlock_types.h>
#include <linux/spinlock_types.h>


/*
/*
@@ -80,7 +81,7 @@ struct pt_regs;
 * interrupt source (if it supports chaining).
 * interrupt source (if it supports chaining).
 */
 */
typedef struct irq_node {
typedef struct irq_node {
	int		(*handler)(int, void *);
	irqreturn_t	(*handler)(int, void *);
	void		*dev_id;
	void		*dev_id;
	struct irq_node *next;
	struct irq_node *next;
	unsigned long	flags;
	unsigned long	flags;