env: fat: drop not needed #ifdef CMD_SAVEENV
PATCH 1/4 env: fat: drop not needed #ifdef CMD_SAVEENV
env_save_ptr(..) macro handles CMD_SAVEENV already.
--- env/fat.c | 2 -- 1 file changed, 2 deletions(-)
env/fat.c +0 -2
@@ -134,7 +134,5 @@ U_BOOT_ENV_LOCATION(fat) = {#ifdef LOADENV .load = env_fat_load, #endif -#ifdef CMD_SAVEENV .save = env_save_ptr(env_fat_save), -#endif };
Signature · 1 line
2.17.1
PATCH 2/4 env: flash: drop not needed #ifdef CMD_SAVEENV
env_save_ptr(..) macro handles CMD_SAVEENV already.
--- env/flash.c | 2 -- 1 file changed, 2 deletions(-)
env/flash.c +0 -2
@@ -360,9 +360,7 @@ U_BOOT_ENV_LOCATION(flash) = {#ifdef LOADENV .load = env_flash_load, #endif -#ifdef CMD_SAVEENV .save = env_save_ptr(env_flash_save), -#endif #ifdef INITENV .init = env_flash_init,#endif
Signature · 1 line
2.17.1
PATCH 2/4 env: flash: drop not needed #ifdef CMD_SAVEENV
Quoted 6 lines · Christian Gmeiner
env_save_ptr(..)macro handlesCMD_SAVEENValready.Signed-off-by Christian Gmeiner <[email protected]>--- env/flash.c | 2 -- 1 file changed, 2 deletions(-)
I'd be tempted to do these changes in one patch, but either is fine with me.
- Simon
PATCH 3/4 env: nand: drop not needed #ifdef CMD_SAVEENV
In reply to Christian Gmeinerenv_save_ptr(..) macro handles CMD_SAVEENV already.
--- env/nand.c | 2 -- 1 file changed, 2 deletions(-)
env/nand.c +0 -2
@@ -388,8 +388,6 @@ U_BOOT_ENV_LOCATION(nand) = { .location = ENVL_NAND,ENV_NAME ("NAND" ) .load = env_nand_load, -#if defined(CMD_SAVEENV) .save = env_save_ptr(env_nand_save), -#endif .init = env_nand_init, };
Signature · 1 line
2.17.1
PATCH 3/4 env: nand: drop not needed #ifdef CMD_SAVEENV
Quoted 6 lines · Christian Gmeiner
env_save_ptr(..)macro handlesCMD_SAVEENValready.Signed-off-by Christian Gmeiner <[email protected]>--- env/nand.c | 2 -- 1 file changed, 2 deletions(-)
PATCH 4/4 env: sf: drop not needed #ifdef CMD_SAVEENV
In reply to Christian Gmeinerenv_save_ptr(..) macro handles CMD_SAVEENV already.
--- env/sf.c | 2 -- 1 file changed, 2 deletions(-)
env/sf.c +0 -2
@@ -318,9 +318,7 @@ U_BOOT_ENV_LOCATION(sf) = { .location = ENVL_SPI_FLASH, ENV_NAME("SPI Flash") .load = env_sf_load, -#ifdef CMD_SAVEENV .save = env_save_ptr(env_sf_save), -#endif #if defined(INITENV ) && defined(CONFIG_ENV_ADDR ) .init = env_sf_init,#endif
Signature · 1 line
2.17.1
PATCH 4/4 env: sf: drop not needed #ifdef CMD_SAVEENV
Quoted 6 lines · Christian Gmeiner
env_save_ptr(..)macro handlesCMD_SAVEENValready.Signed-off-by Christian Gmeiner <[email protected]>--- env/sf.c | 2 -- 1 file changed, 2 deletions(-)
PATCH 1/4 env: fat: drop not needed #ifdef CMD_SAVEENV
In reply to Christian GmeinerQuoted 7 lines · Christian Gmeiner
env_save_ptr(..)macro handlesCMD_SAVEENValready.Signed-off-by Christian Gmeiner <[email protected]>--- env/fat.c | 2 -- 1 file changed, 2 deletions(-)
PATCH 1/4 env: fat: drop not needed #ifdef CMD_SAVEENV
In reply to Christian GmeinerQuoted 13 lines · Christian Gmeiner
env_save_ptr(..)macro handlesCMD_SAVEENValready.Signed-off-by Christian Gmeiner <[email protected]>Reviewed-by Simon Glass <[email protected]>--- env/fat.c | 2 -- 1 file changed, 2 deletions(-)env/fat.c +0
-0
env/fat.c U_BOOT_ENV_LOCATION(fat) = { · line 139
Quoted 6 lines
env/fat.c +0
-2@@ -134,7 +134,5 @@ U_BOOT_ENV_LOCATION(fat) = {#ifdef LOADENV .load = env_fat_load, #endif -#ifdef CMD_SAVEENV .save = env_save_ptr(env_fat_save), -#endif
This series breaks a number of platforms (P1022DS_36BIT_NAND, am43xx_hs_evm, mccmon6_nor to name just 3 out of many). Please put v2 of this series through a world build (travis-ci is probably easiest). Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180820/2a26ba46/attachment.sig>