From: Wolfgang Denk Date: Sun, 09 Oct 2011 21:11:15 +0200 Subject: [U-Boot] [PATCH 1/2] ppc: Include in common.h In-Reply-To: References: <1317985534-11135-1-git-send-email-sr@denx.de> Message-ID: <20111009191115.5CE221408775@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 Dear Anton Staaf, In message you wrote: > > > This is needed for the patch "cache: add default setting for > > CONFIG_SYS_CACHELINE_SIZE" from Anton Staaf. As cache.h defines > > CONFIG_SYS_CACHELINE_SIZE for PPC targets. > > > > This will remove the following warnings/errors: > > > > include/common.h:819:2: warning: #warning CONFIG_SYS_CACHELINE_SIZE not d= > efined, using __BIGGEST_ALIGNMENT__ > > cache.c:33: error: '__BIGGEST_ALIGNMENT__' undeclared (first use in this = > function) ... > It would be great if this could be enabled for all configs, not just > PPC. Would it make sense to remove this check and add #ifndef > __ASSEMBLY__ to the other cache.h files? The list is not too long > (m68k, sparc, sh, nios2, and arm). I'd be happy to look into that if > you'd rather get this in first. Agreed. But please let's do this in a second step (feel free to submit a patch :-) I suggest to just add this under #ifndef __ASSEMBLY__ 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 Never put off until tomorrow what you can put off indefinitely.