From f14e6eec6c7fe5c0a77491bdb62961ae8dacb503 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 4 Jan 2021 20:48:03 +0100 Subject: image: cleanup pre-processor usage Replace most #ifdef checks for USE_HOSTCC and CONFIG_* with normal if instructions. Reviewed-by: Simon Glass Signed-off-by: Sebastian Reichel --- include/image.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/image.h') 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)) -- cgit v1.2.3