[U-Boot] [PATCH 1/2] common.h: Introduce DEFINE_CACHE_ALIGN_BUFFER
Marek Vasut
marex at denx.de
Sun Jul 8 20:55:40 CEST 2012
Dear Ilya Yanok,
> Hi Marek,
>
> On Sun, Jul 8, 2012 at 7:08 AM, Marek Vasut <marex at denx.de> wrote:
> > This is the out-of-function-scope counterpart of
> > ALLOC_CACHE_ALIGN_BUFFER.
> > +#define DEFINE_CACHE_ALIGN_BUFFER(type, name, size) \
> > + static char __##name[roundup(size * sizeof(type),
> > ARCH_DMA_MINALIGN)] \
> > + __aligned(ARCH_DMA_MINALIGN); \
>
> We need linux/compiler.h (not included from common.h) for __aligned.
Correct, but is it a good idea to include it in common.h ?
Ilya, can you re-do this patchset and repost?
> Regards, Ilya.
Best regards,
Marek Vasut
More information about the U-Boot
mailing list