Skip to content
Snippets Groups Projects
Commit d1f2ee70 authored by York Sun's avatar York Sun
Browse files

cmd: spl: Fix compiling warning


Fix warning "cast from pointer to integer of different size".

Signed-off-by: default avatarYork Sun <york.sun@nxp.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 05e35d26
No related branches found
No related tags found
No related merge requests found
...@@ -109,12 +109,12 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -109,12 +109,12 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
c = find_cmd_tbl(argv[1], &cmd_spl_export_sub[0], c = find_cmd_tbl(argv[1], &cmd_spl_export_sub[0],
ARRAY_SIZE(cmd_spl_export_sub)); ARRAY_SIZE(cmd_spl_export_sub));
if ((c) && ((int)c->cmd <= SPL_EXPORT_LAST)) { if ((c) && ((long)c->cmd <= SPL_EXPORT_LAST)) {
argc -= 2; argc -= 2;
argv += 2; argv += 2;
if (call_bootm(argc, argv, subcmd_list[(int)c->cmd])) if (call_bootm(argc, argv, subcmd_list[(long)c->cmd]))
return -1; return -1;
switch ((int)c->cmd) { switch ((long)c->cmd) {
#ifdef CONFIG_OF_LIBFDT #ifdef CONFIG_OF_LIBFDT
case SPL_EXPORT_FDT: case SPL_EXPORT_FDT:
printf("Argument image is now in RAM: 0x%p\n", printf("Argument image is now in RAM: 0x%p\n",
...@@ -153,7 +153,7 @@ static int do_spl(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -153,7 +153,7 @@ static int do_spl(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
c = find_cmd_tbl(argv[1], &cmd_spl_sub[0], ARRAY_SIZE(cmd_spl_sub)); c = find_cmd_tbl(argv[1], &cmd_spl_sub[0], ARRAY_SIZE(cmd_spl_sub));
if (c) { if (c) {
cmd = (int)c->cmd; cmd = (long)c->cmd;
switch (cmd) { switch (cmd) {
case SPL_EXPORT: case SPL_EXPORT:
argc--; argc--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment