From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] LMB: Fix undefined lmb_reserve() on non-lmb platforms
Date: Sun, 1 Apr 2012 16:03:50 +0200 [thread overview]
Message-ID: <201204011603.50251.marex@denx.de> (raw)
In-Reply-To: <1333288786-10296-1-git-send-email-marex@denx.de>
Dear Marek Vasut,
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Mike Frysinger <vapier@gentoo.org>
> Cc: Stephen Warren <swarren@nvidia.com>
> Cc: Tom Warren <TWarren@nvidia.com>
> Cc: Graeme Russ <graeme.russ@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
next prev parent reply other threads:[~2012-04-01 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-01 13:59 [U-Boot] [PATCH] LMB: Fix undefined lmb_reserve() on non-lmb platforms Marek Vasut
2012-04-01 14:03 ` Marek Vasut [this message]
2012-04-01 19:24 ` Mike Frysinger
2012-04-09 14:53 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201204011603.50251.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox