nand: declare exported function in core.h
Don't use 'extern' in a C file, but declare the exported function in a H file. This helps validating the function prototype across declaration and use. Detected through 'sparse' tool. Change-Id: I2c22b084fb513f4b3b1b1db96dfbc8fa4bfe7238 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7666 Tested-by: jenkins
This commit is contained in:
parent
ea530015b0
commit
faf7202f8e
|
@ -202,6 +202,8 @@ int nand_calculate_ecc(struct nand_device *nand,
|
||||||
const uint8_t *dat, uint8_t *ecc_code);
|
const uint8_t *dat, uint8_t *ecc_code);
|
||||||
int nand_calculate_ecc_kw(struct nand_device *nand,
|
int nand_calculate_ecc_kw(struct nand_device *nand,
|
||||||
const uint8_t *dat, uint8_t *ecc_code);
|
const uint8_t *dat, uint8_t *ecc_code);
|
||||||
|
int nand_correct_data(struct nand_device *nand, u_char *dat,
|
||||||
|
u_char *read_ecc, u_char *calc_ecc);
|
||||||
|
|
||||||
int nand_register_commands(struct command_context *cmd_ctx);
|
int nand_register_commands(struct command_context *cmd_ctx);
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
static int lpc32xx_reset(struct nand_device *nand);
|
static int lpc32xx_reset(struct nand_device *nand);
|
||||||
static int lpc32xx_controller_ready(struct nand_device *nand, int timeout);
|
static int lpc32xx_controller_ready(struct nand_device *nand, int timeout);
|
||||||
static int lpc32xx_tc_ready(struct nand_device *nand, int timeout);
|
static int lpc32xx_tc_ready(struct nand_device *nand, int timeout);
|
||||||
extern int nand_correct_data(struct nand_device *nand, u_char *dat,
|
|
||||||
u_char *read_ecc, u_char *calc_ecc);
|
|
||||||
|
|
||||||
/* These are offset with the working area in IRAM when using DMA to
|
/* These are offset with the working area in IRAM when using DMA to
|
||||||
* read/write data to the SLC controller.
|
* read/write data to the SLC controller.
|
||||||
|
|
Loading…
Reference in New Issue