boards: Correct xxx_main prototype

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-16 20:34:59 +08:00 committed by Petro Karashchenko
parent 78f6a02bc8
commit b9cd0508e7
6 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ typedef void (*nor_entry_t)(void);
* *
****************************************************************************/ ****************************************************************************/
int nor_main(int argc, char *argv) int nor_main(int argc, char *argv[])
{ {
uint32_t regval; uint32_t regval;

View File

@ -103,7 +103,7 @@ static char g_at25dev[DEVNAME_MAXSIZE];
* *
****************************************************************************/ ****************************************************************************/
int at25_main(int argc, char *argv) int at25_main(int argc, char *argv[])
{ {
struct lib_rawinstream_s rawinstream; struct lib_rawinstream_s rawinstream;
struct lib_memsostream_s memoutstream; struct lib_memsostream_s memoutstream;

View File

@ -73,7 +73,7 @@ typedef void (*dram_entry_t)(void);
* *
****************************************************************************/ ****************************************************************************/
int dram_main(int argc, char *argv) int dram_main(int argc, char *argv[])
{ {
/* Here we have a in memory value we can change in the debugger /* Here we have a in memory value we can change in the debugger
* to begin booting in NOR Flash * to begin booting in NOR Flash

View File

@ -72,7 +72,7 @@ typedef CODE void (*sram_entry_t)(void);
* *
****************************************************************************/ ****************************************************************************/
int sd_main(int argc, char *argv) int sd_main(int argc, char *argv[])
{ {
int fd; int fd;
int ret; int ret;

View File

@ -67,7 +67,7 @@ typedef CODE void (*sram_entry_t)(void);
* *
****************************************************************************/ ****************************************************************************/
int sd_main(int argc, char *argv) int sd_main(int argc, char *argv[])
{ {
int fd; int fd;
int ret; int ret;

View File

@ -729,7 +729,7 @@ errout:
* *
****************************************************************************/ ****************************************************************************/
int w25_main(int argc, char *argv) int w25_main(int argc, char *argv[])
{ {
bool disable = false; bool disable = false;
int ret; int ret;