Files
u-boot/include
Rasmus Villemoes 080019b86c make env_entry::callback conditional on !CONFIG_SPL_BUILD
The callback member of struct env_entry is always NULL for an SPL
build. Removing it thus saves a bit of run-time memory in the
SPL (when CONFIG_SPL_ENV_SUPPORT=y) since struct env_entry is embedded
in struct env_entry_node - i.e. about 2KB for the normal case of
512+change hash table entries.

Two small fixups are needed for this, all other references to the
callback member are already under !CONFIG_SPL_BUILD: Don't initialize
.callback in set_flags() - hsearch_r doesn't use that value
anyway. And make env_callback_init() initialize ->callback to NULL for
a new entry instead of relying on an unused or deleted entry having
NULL in ->callback.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-24 10:09:59 -04:00
..
2020-04-16 14:36:28 +08:00
2020-04-17 12:32:36 -04:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:47 +05:30
2020-01-20 15:38:16 +01:00
2020-01-20 15:38:16 +01:00
2020-01-24 23:06:49 +05:30
2020-04-17 12:32:36 -04:00
2020-01-25 12:04:36 -05:00
2020-03-09 18:11:23 -05:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-03-09 08:33:16 +08:00
2020-02-05 19:33:46 -07:00
2020-04-16 14:36:28 +08:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-02-07 22:46:35 +08:00