aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Reichel <sebastian.reichel@collabora.com>2021-01-04 20:48:03 +0100
committerTom Rini <trini@konsulko.com>2021-01-05 08:21:48 -0500
commitf14e6eec6c7fe5c0a77491bdb62961ae8dacb503 (patch)
tree6e113ac9bc650a5ba285b65e16ce65f66dbdce1d /include
parent62b07b5173e3d04fabfac42cf1f4779d021f94ad (diff)
downloadu-boot-f14e6eec6c7fe5c0a77491bdb62961ae8dacb503.zip
u-boot-f14e6eec6c7fe5c0a77491bdb62961ae8dacb503.tar.gz
u-boot-f14e6eec6c7fe5c0a77491bdb62961ae8dacb503.tar.bz2
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')
-rw-r--r--include/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 00bc03b..41473db 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))