From: Wolfgang Denk Date: Sun, 20 Apr 2008 03:14:10 +0200 Subject: [U-Boot-Users] [PATCH] cfi-flash: Add CFG_FLASH_AUTOPROTECT_LIST In-Reply-To: Your message of "Fri, 18 Apr 2008 18:01:57 +0200." <20080418160157.GB12486@game.jcrosoft.org> Message-ID: <20080420011410.709C5248A0@gemini.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 In message <20080418160157.GB12486@game.jcrosoft.org> you wrote: > > > +#if defined(CFG_FLASH_AUTOPROTECT_LIST) > > + struct apl_s { > > + ulong start; > > + ulong size; > > + } apl[] = CFG_FLASH_AUTOPROTECT_LIST; > > +#endif > I think it will be better to create a weak structure. In the interest of memory footprint I prefer to stick with the #ifdef here. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Motto of the Electrical Engineer: Working computer hardware is a lot like an erect penis: it stays up as long as you don't fuck with it.