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-01-17 10:16:29 -05:00
2018-05-07 09:34:12 -04:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-04-16 16:41:40 -04:00
2020-03-22 11:06:23 +01:00
2020-02-05 19:33:46 -07:00
2020-01-30 13:30:35 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-01-30 13:30:35 -05:00
2020-04-07 17:13:35 -04:00
2018-05-07 09:34:12 -04:00
2020-01-17 17:53:40 -05:00
2020-02-05 19:33:46 -07:00
2020-01-22 17:47:57 -05:00
2018-05-07 09:34:12 -04:00
2020-01-17 10:15:49 -05:00
2018-05-07 09:34:12 -04:00
2019-12-06 16:44:20 -05:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2018-09-18 00:01:18 -06:00
2019-09-20 20:09:19 +02:00
2018-05-07 09:34:12 -04:00
2011-01-18 23:38:08 +01:00
2019-12-02 18:23:07 -05:00
2018-12-08 20:18:44 -05:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-12-06 16:44:19 -05:00
2020-01-17 17:53:52 -05:00
2019-04-23 20:26:43 -06:00
2020-03-03 13:08:14 +05:30
2019-10-31 07:22:53 -04:00
2010-09-19 19:29:47 +02:00
2018-05-07 09:34:12 -04:00
2019-07-10 16:52:58 -06:00
2020-04-23 10:14:16 +08:00
2019-12-02 18:23:08 -05:00
2019-08-11 16:43:41 -04:00
2020-01-17 17:53:40 -05:00
2020-04-24 10:09:59 -04:00
2018-06-13 07:49:12 -04:00
2018-05-30 11:59:21 +02:00
2020-04-17 12:32:36 -04:00
2018-05-07 09:34:12 -04:00
2020-02-05 19:33:46 -07:00
2012-12-13 11:46:07 -07:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2019-12-02 18:23:11 -05:00
2018-05-10 20:38:35 -04:00
2020-04-16 14:36:28 +08:00
2012-04-29 14:14:08 +02:00
2018-05-07 09:34:12 -04:00
2019-12-15 11:43:57 +08:00
2018-05-07 09:34:12 -04:00
2019-12-06 16:44:20 -05:00
2020-01-17 17:53:40 -05:00
2018-12-05 06:01:34 -07:00
2019-12-02 18:23:08 -05:00
2019-12-02 18:23:07 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-09-05 16:02:34 -04:00
2019-08-11 16:43:41 -04:00
2020-02-05 19:33:46 -07:00
2020-04-06 12:52:45 +02:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:13 -05:00
2019-11-01 09:34:35 -04:00
2018-12-05 06:01:34 -07:00
2018-11-29 09:30:06 -07:00
2019-02-19 08:55:43 -05:00
2018-11-29 09:30:06 -07:00
2020-01-22 17:47:57 -05:00
2019-12-02 18:23:13 -05:00
2019-12-09 09:47:41 -06:00
2019-05-05 08:48:50 -04:00