1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/mtd/nand/raw/ingenic
Arnd Bergmann 650a8884a3 mtd: rawnand: ingenic: fix empty stub helper definitions
A few functions provide an empty interface definition when
CONFIG_MTD_NAND_INGENIC_ECC is disabled, but they are accidentally
defined as global functions in the header:

drivers/mtd/nand/raw/ingenic/ingenic_ecc.h:39:5: error: no previous prototype for 'ingenic_ecc_calculate'
drivers/mtd/nand/raw/ingenic/ingenic_ecc.h:46:5: error: no previous prototype for 'ingenic_ecc_correct'
drivers/mtd/nand/raw/ingenic/ingenic_ecc.h:53:6: error: no previous prototype for 'ingenic_ecc_release'
drivers/mtd/nand/raw/ingenic/ingenic_ecc.h:57:21: error: no previous prototype for 'of_ingenic_ecc_get'

Turn them into 'static inline' definitions instead.

Fixes: 15de8c6efd ("mtd: rawnand: ingenic: Separate top-level and SoC specific code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230516202133.559488-1-arnd@kernel.org
2023-05-26 19:40:32 +02:00
..
ingenic_ecc.c mtd: rawnand: ingenic: Fix missing put_device in ingenic_ecc_get 2022-01-25 10:31:10 +01:00
ingenic_ecc.h mtd: rawnand: ingenic: fix empty stub helper definitions 2023-05-26 19:40:32 +02:00
ingenic_nand_drv.c mtd: nand: Convert to platform remove callback returning void 2023-04-11 15:42:24 +02:00
jz4725b_bch.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
jz4740_ecc.c mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use 2020-07-07 20:44:43 +02:00
jz4780_bch.c mtd: Fix misuses of of_match_ptr() 2022-01-31 17:18:03 +01:00
Kconfig mtd: rawnand: ingenic: Add dependency on MIPS || COMPILE_TEST 2020-03-11 16:17:55 +01:00
Makefile mtd: rawnand: Drop obsolete JZ4740 NAND driver 2019-07-30 10:41:54 -07:00