From 6712d8ef720ed75486d2c7298f87fc4c6f92d45c Mon Sep 17 00:00:00 2001 From: Sukrut Bellary Date: Tue, 12 Nov 2024 14:57:38 -0800 Subject: include: Use CONFIG_IS_ENABLED(VIDEO) for fdt_add_fb_mem_rsv() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IF CONFIG_VIDEO is enabled, using IS_ENABLED() causes a build failure ../common/fdt_support.c: In function ‘fdt_add_fb_mem_rsv’: ../common/fdt_support.c:1983:15: error: ‘gd_t’ {aka ‘volatile struct global_data’} has no member named ‘video_bottom’ 1983 | if (gd->video_bottom == gd->video_top) So use CONFIG_IS_ENABLED(VIDEO) to fix it. Signed-off-by: Sukrut Bellary --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/fdt_support.c') diff --git a/common/fdt_support.c b/common/fdt_support.c index 0e2f12bd09c..39c7a90d2ce 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1973,7 +1973,7 @@ int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width, return 0; } -#if IS_ENABLED(CONFIG_VIDEO) +#if CONFIG_IS_ENABLED(VIDEO) int fdt_add_fb_mem_rsv(void *blob) { struct fdt_memory mem; -- cgit v1.2.3