[U-Boot] [PATCH] LMB: Fix undefined lmb_reserve() on non-lmb platforms

Marek Vasut marex at denx.de
Sun Apr 1 16:03:50 CEST 2012


Dear Marek Vasut,

> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Mike Frysinger <vapier at gentoo.org>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Tom Warren <TWarren at nvidia.com>
> Cc: Graeme Russ <graeme.russ at gmail.com>
> ---
>  common/cmd_bootm.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
> index 9ad2535..5685232 100644
> --- a/common/cmd_bootm.c
> +++ b/common/cmd_bootm.c
> @@ -186,6 +186,7 @@ static void boot_start_lmb(bootm_headers_t *images)
>  	board_lmb_reserve(&images->lmb);
>  }
>  #else
> +#define lmb_reserve(lmb, base, size)

Though I have to admit, this is compiler-rape. It's again depending on the fact 
that preprocessor will remove this altogether and compiler then won't use any of 
the variables :-(

>  static inline void boot_start_lmb(bootm_headers_t *images) { }
>  #endif

Best regards,
Marek Vasut


More information about the U-Boot mailing list