]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: rawnand: lpc32xx_mlc: fix irq handler prototype
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Feb 2024 10:00:09 +0000 (11:00 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:52 +0000 (18:19 -0400)
commit8529c215360ba076590e7d4f03cb6636e401587a
tree0d75f1ad6787bd38a10d56bb81403b819fb165a6
parent6853209fd36afa7bf596505b3e93787188efc828
mtd: rawnand: lpc32xx_mlc: fix irq handler prototype

[ Upstream commit 347b828882e6334690e7003ce5e2fe5f233dc508 ]

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@arndb.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240213100146.455811-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/lpc32xx_mlc.c