From: Ashok Reddy Soma Date: Tue, 14 Dec 2021 12:19:12 +0000 (-0700) Subject: lmb: Fix lmb property's defination under struct lmb X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6813b3c49708be4a54810745cb3c147f3781027c;p=thirdparty%2Fu-boot.git lmb: Fix lmb property's defination under struct lmb Under struct lmb {} the lmb property's should be defined only if CONFIG_LMB_MEMORY_REGIONS is defined. Signed-off-by: Ashok Reddy Soma --- diff --git a/include/lmb.h b/include/lmb.h index ab277ca8000..1476d78c282 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -68,7 +68,7 @@ struct lmb_region { struct lmb { struct lmb_region memory; struct lmb_region reserved; -#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS) +#if IS_ENABLED(CONFIG_LMB_MEMORY_REGIONS) struct lmb_property memory_regions[CONFIG_LMB_MEMORY_REGIONS]; struct lmb_property reserved_regions[CONFIG_LMB_RESERVED_REGIONS]; #endif