From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Thu, 17 Dec 2009 10:59:24 -0600 Subject: [U-Boot] [PATCH] onenand: Fix compile errors due to FlexOneNAND In-Reply-To: <1261066384-6837-1-git-send-email-premi@ti.com> References: <1261066384-6837-1-git-send-email-premi@ti.com> Message-ID: <4B2A636C.2080103@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Sanjeev Premi wrote: > This patch fixes the compile error while trying to > compile for omap3evm. > > 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