diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-01-04 22:48:03 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-05 16:21:48 +0300 |
commit | f14e6eec6c7fe5c0a77491bdb62961ae8dacb503 (patch) | |
tree | 6e113ac9bc650a5ba285b65e16ce65f66dbdce1d /include/image.h | |
parent | 62b07b5173e3d04fabfac42cf1f4779d021f94ad (diff) | |
download | u-boot-f14e6eec6c7fe5c0a77491bdb62961ae8dacb503.tar.xz |
image: cleanup pre-processor usage
Replace most #ifdef checks for USE_HOSTCC and CONFIG_*
with normal if instructions.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 00bc03bebe..41473dbb9c 100644 --- a/include/image.h +++ b/include/image.h @@ -1552,6 +1552,10 @@ int board_fit_config_name_match(const char *name); * @return no return value (failure should be handled internally) */ void board_fit_image_post_process(void **p_image, size_t *p_size); +#else +static inline void board_fit_image_post_process(void **p_image, size_t *p_size) +{ +} #endif /* CONFIG_SPL_FIT_IMAGE_POST_PROCESS */ #define FDT_ERROR ((ulong)(-1)) |