Skip to contentSkip to conversation

env: fat: drop not needed #ifdef CMD_SAVEENV

PATCH New Christian Gmeiner 3 participants 9 messages Aug 14, 2018 – Aug 20, 2018

lore
Share & tools
lore
#0 lore raw

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
index 7f74c64dfe..165a11345f 100644
@@ -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
#1 lore raw

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
index 32236c716e..f6e62df23c 100644
@@ -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
#3 lore raw

PATCH 3/4 env: nand: drop not needed #ifdef CMD_SAVEENV

In reply to Christian Gmeiner

env_save_ptr(..) macro handles CMD_SAVEENV already.

---
 env/nand.c | 2 --
 1 file changed, 2 deletions(-)
env/nand.c +0 -2
index 3698e68957..d8d5f2e6b3 100644
@@ -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
#5 lore raw

PATCH 4/4 env: sf: drop not needed #ifdef CMD_SAVEENV

In reply to Christian Gmeiner

env_save_ptr(..) macro handles CMD_SAVEENV already.

---
 env/sf.c | 2 --
 1 file changed, 2 deletions(-)
env/sf.c +0 -2
index 494510533a..70c1b61930 100644
@@ -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
#8 lore raw

PATCH 1/4 env: fat: drop not needed #ifdef CMD_SAVEENV

In reply to Christian Gmeiner
Quoted 13 lines · Christian Gmeiner

env_save_ptr(..) macro handles CMD_SAVEENV already.

---
 env/fat.c | 2 --
 1 file changed, 2 deletions(-)
env/fat.c +0 -0
index 7f74c64dfe..165a11345f 100644

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>