From 5beee4e82982368bcb9517be2213fb107171fe3d Mon Sep 17 00:00:00 2001 From: Yifeng Zhao Date: Thu, 31 Dec 2020 14:43:43 +0800 Subject: [PATCH] arch: rockchip: fit misc: fix complie error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit arch/arm/mach-rockchip/fit_misc.c:26:12: error: ‘fit_image_check_uncomp_hash defined but not used [-Werror=unused-function] Signed-off-by: Yifeng Zhao Change-Id: If959d9e946351ce41dd1374b4c69f182f5273d39 --- arch/arm/mach-rockchip/fit_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/fit_misc.c b/arch/arm/mach-rockchip/fit_misc.c index 56f11b4626..6a6a27b019 100644 --- a/arch/arm/mach-rockchip/fit_misc.c +++ b/arch/arm/mach-rockchip/fit_misc.c @@ -23,6 +23,7 @@ DECLARE_GLOBAL_DATA_PTR; #if CONFIG_IS_ENABLED(FIT_IMAGE_POST_PROCESS) #define FIT_UNCOMP_HASH_NODENAME "digest" +#if CONFIG_IS_ENABLED(MISC_DECOMPRESS) || CONFIG_IS_ENABLED(GZIP) static int fit_image_check_uncomp_hash(const void *fit, int parent_noffset, const void *data, size_t size) { @@ -42,7 +43,6 @@ static int fit_image_check_uncomp_hash(const void *fit, int parent_noffset, return 0; } -#if CONFIG_IS_ENABLED(MISC_DECOMPRESS) || CONFIG_IS_ENABLED(GZIP) static int fit_gunzip_image(void *fit, int node, ulong *load_addr, ulong **src_addr, size_t *src_len) {