[U-Boot] [PATCH 1/2] command/cmd_cache.c: Add optional flush arguments

McClintock Matthew-B29882 B29882 at freescale.com
Tue May 24 17:06:03 CEST 2011


On Mon, May 23, 2011 at 7:25 PM, Mike Frysinger <vapier at gentoo.org> 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)
{
        /* please define arch specific flush_icache */
        puts("No arch specific flush_icache available!\n");
}

I seem to require separate declaration and definition for this to
work.... however the alias is not required.

-M


More information about the U-Boot mailing list