From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 1 Apr 2012 16:03:50 +0200 Subject: [U-Boot] [PATCH] LMB: Fix undefined lmb_reserve() on non-lmb platforms In-Reply-To: <1333288786-10296-1-git-send-email-marex@denx.de> References: <1333288786-10296-1-git-send-email-marex@denx.de> Message-ID: <201204011603.50251.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, > Signed-off-by: Marek Vasut > Cc: Wolfgang Denk > Cc: Mike Frysinger > Cc: Stephen Warren > Cc: Tom Warren > Cc: Graeme Russ > --- > 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