public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] onenand: Fix compile errors due to FlexOneNAND
Date: Thu, 17 Dec 2009 10:59:24 -0600	[thread overview]
Message-ID: <4B2A636C.2080103@windriver.com> (raw)
In-Reply-To: <1261066384-6837-1-git-send-email-premi@ti.com>

Sanjeev Premi wrote:
> This patch fixes the compile error while trying to
> compile for omap3evm.
> 
<snip>
> env_onenand.c: In function 'env_relocate_spec':

>  	env_addr = CONFIG_ENV_ADDR;
> +#ifdef CONFIG_ENV_ADDR_FLEX
>  	if (FLEXONENAND(this))
>  		env_addr = CONFIG_ENV_ADDR_FLEX;
> -
> +#endif

Please also add this #ifdef around the declaration of

	struct onenand_chip *this = &onenand_chip;

There are 'unused variable' warnings now

Otherwise fine.
Tom

      reply	other threads:[~2009-12-17 16:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-17 16:13 [U-Boot] [PATCH] onenand: Fix compile errors due to FlexOneNAND Sanjeev Premi
2009-12-17 16:59 ` Tom [this message]

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=4B2A636C.2080103@windriver.com \
    --to=tom.rix@windriver.com \
    --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