Re: [PATCH 5/5] env/sf.c: drop private CMD_SAVEENV logic

2020-04-24 Thread Tom Rini
On Wed, Feb 19, 2020 at 09:47:43AM +, Rasmus Villemoes wrote: > Deciding whether to compile the env_sf_save() function based solely on > CONFIG_SPL_BUILD is wrong: For U-Boot proper, it leads to a build > warning in case CONFIG_CMD_SAVEENV=n (because the env_save_ptr() macro > causes the

[PATCH 5/5] env/sf.c: drop private CMD_SAVEENV logic

2020-02-19 Thread Rasmus Villemoes
Deciding whether to compile the env_sf_save() function based solely on CONFIG_SPL_BUILD is wrong: For U-Boot proper, it leads to a build warning in case CONFIG_CMD_SAVEENV=n (because the env_save_ptr() macro causes the function to indeed not be referenced anywhere). And for SPL, when one selects