From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 3 Aug 2015 16:21:33 -0500 Subject: [U-Boot] [PATCH v3 7/8] mtd/nand/ubi: assortment of alignment fixes In-Reply-To: <1745a3a98dda2ba4d0daec6eca0b9830addb3c0d.1438636040.git.marcel.ziswiler@toradex.com> References: <1745a3a98dda2ba4d0daec6eca0b9830addb3c0d.1438636040.git.marcel.ziswiler@toradex.com> Message-ID: <1438636893.2097.65.camel@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2015-08-03 at 23:15 +0200, Marcel Ziswiler wrote: > diff --git a/include/malloc.h b/include/malloc.h > index f4da9e6..5933a94 100644 > --- a/include/malloc.h > +++ b/include/malloc.h > @@ -955,6 +955,14 @@ extern ulong mem_malloc_brk; > > void mem_malloc_init(ulong start, ulong size); > > +#include > +#include > + > +static inline void *malloc_cache_aligned(size_t size) > +{ > + return memalign(ARCH_DMA_MINALIGN, ALIGN(size, ARCH_DMA_MINALIGN)); > +} > + > #ifdef __cplusplus > }; /* end of extern "C" */ > #endif malloc.h is for dlmalloc itself -- please put this somewhere like common.h. Otherwise, ACK. -Scott