From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 3 Apr 2012 12:16:27 +0200 Subject: [U-Boot] [PATCH] bootm: fix usage of lmb_reserve() Message-ID: <1333448187-7456-1-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Andreas Bie?mann commit 44f074c771c4b70d250b0d7ed2f7513488c678bb brakes compiling avr32 boards which do not have CONFIG_LMB. This patch re-add the empty lmb_reserve() define to opt-out respective code parts in do_bootm() and do_bootm_subcommand(). This patch fixes errors like this: ---8<--- cmd_bootm.c: In function 'do_bootm_subcommand': cmd_bootm.c:518: error: 'bootm_headers_t' has no member named 'lmb' cmd_bootm.c: In function 'do_bootm': cmd_bootm.c:665: error: 'bootm_headers_t' has no member named 'lmb' --->8--- Signed-off-by: Andreas Bie?mann --- common/cmd_bootm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 9ad2535..7d72c7a 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -186,6 +186,8 @@ static void boot_start_lmb(bootm_headers_t *images) board_lmb_reserve(&images->lmb); } #else +/* we want to opt-out access to images.lmb by precompiler !*/ +# define lmb_reserve(lmb, base, size) static inline void boot_start_lmb(bootm_headers_t *images) { } #endif -- 1.7.9.1