[PATCH] mtd: rawnand: lpc32xx_mlc: fix irq handler prototype
Miquel Raynal
miquel.raynal at bootlin.com
Mon Feb 26 02:44:52 PST 2024
On Tue, 2024-02-13 at 10:00:09 UTC, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> clang-16 warns about mismatched function prototypes:
>
> drivers/mtd/nand/raw/lpc32xx_mlc.c:783:29: error: cast from 'irqreturn_t (*)(int, struct lpc32xx_nand_host *)' (aka 'enum irqreturn (*)(int, struct lpc32xx_nand_host *)') to 'irq_handler_t' (aka 'enum irqreturn (*)(int, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
>
> Change the interrupt handler to the normal way of just passing
> a void* pointer and converting it inside the function..
>
> Fixes: 70f7cb78ec53 ("mtd: add LPC32xx MLC NAND driver")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
More information about the linux-arm-kernel
mailing list