[U-Boot] [PATCH] mmc:dcache: Cache line size aligned internal MMC buffers

Scott Wood scottwood at freescale.com
Tue Aug 30 00:03:31 CEST 2011


On 08/29/2011 04:54 PM, Anton Staaf wrote:
> On Mon, Aug 29, 2011 at 2:23 PM, Scott Wood <scottwood at freescale.com> wrote:
>> With the version in that patch I get the slightly different "error:
>> initializer element is not computable at load time".  Seems like whether
>> you cast the address to (type *) or (void *) determines which error you
>> get.  This is with GCC 4.5.1 (powerpc) and 4.6.0 (x86).  Maybe it's
>> arch-dependent, based on available relocation types.
>>
>> Also, shouldn't the array be of type "char" rather than "char *"?
> 
> Yes, you are correct, it should be a char.  That may be the problem.

It didn't make a difference.

>> How do you make the declaration static?
> 
> you can't with this version of the macro.  Are there cases where you
> need the buffer to be static?

I think you'd want it to be static more often than not.

-Scott



More information about the U-Boot mailing list