From 3e0b6ad9e60089afee33804ed04e33b1b63236ca Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Mon, 22 Jan 2018 16:10:06 +0800 Subject: [PATCH] rockchip: resrouce_img: fix compile warning Change-Id: I495e289b915dedbfe456d15d28fbc3da4c466fa6 Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/resource_img.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/resource_img.c b/arch/arm/mach-rockchip/resource_img.c index 44b625f5e9..b0fc451210 100644 --- a/arch/arm/mach-rockchip/resource_img.c +++ b/arch/arm/mach-rockchip/resource_img.c @@ -153,9 +153,11 @@ static int init_resource_list(struct resource_img_hdr *hdr) int offset = 0; int mode = 0; struct blk_desc *dev_desc; - struct andr_img_hdr *andr_hdr; disk_partition_t part_info; +#ifdef CONFIG_ANDROID_BOOT_IMAGE + struct andr_img_hdr *andr_hdr; char *boot_partname = PART_BOOT; +#endif if (hdr) { content = (void *)((char *)hdr