From: Mike Frysinger Date: Tue, 24 May 2011 14:23:53 -0400 Subject: [U-Boot] [PATCH 1/2] command/cmd_cache.c: Add optional flush arguments In-Reply-To: References: <1306175933-4950-1-git-send-email-msm@freescale.com> <201105232025.16134.vapier@gentoo.org> Message-ID: <201105241423.54001.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, May 24, 2011 11:06:03 McClintock Matthew-B29882 wrote: > On Mon, May 23, 2011 at 7:25 PM, Mike Frysinger wrote: > > void __weak flush_icache(void) > > { > > /* please define arch specific flush_icache */ > > puts("No arch specific flush_icache available!\n"); > > } > > This syntax does not quite work for me... how about something like: > > void flush_icache(void) __attribute__((weak)); > void flush_icache(void) now, that's exactly what i do not want. i'm guessing you simply did not include linux/compiler.h and so was missing the __weak define. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110524/3c7d2dc4/attachment.pgp