From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 7/8] mtd/nand/ubi: assortment of alignment fixes
Date: Mon, 3 Aug 2015 16:21:33 -0500 [thread overview]
Message-ID: <1438636893.2097.65.camel@freescale.com> (raw)
In-Reply-To: <1745a3a98dda2ba4d0daec6eca0b9830addb3c0d.1438636040.git.marcel.ziswiler@toradex.com>
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 <asm/cache.h>
> +#include <linux/kernel.h>
> +
> +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
next prev parent reply other threads:[~2015-08-03 21:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 21:15 [U-Boot] [PATCH v3 0/8] assortment of fixes/enhancements Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 1/8] fs/fs.c: read up to EOF when len would read past EOF Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 2/8] net: asix: fix operation without eeprom Marcel Ziswiler
2015-08-03 21:31 ` Marek Vasut
2015-08-03 22:33 ` Marcel Ziswiler
2015-08-03 22:36 ` Marek Vasut
2015-08-04 6:48 ` Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 3/8] generic-board: allow showing custom board info Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 4/8] logos: add Toradex logo Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 5/8] colibri_vf: remove spurious new line Marcel Ziswiler
2015-08-03 21:32 ` Marek Vasut
2015-08-03 21:15 ` [U-Boot] [PATCH v3 6/8] image-fdt.c: store returned error value Marcel Ziswiler
2015-08-03 21:15 ` [U-Boot] [PATCH v3 7/8] mtd/nand/ubi: assortment of alignment fixes Marcel Ziswiler
2015-08-03 21:21 ` Scott Wood [this message]
2015-08-03 21:15 ` [U-Boot] [PATCH v3 8/8] tftp.c: fix CONFIG_TFTP_TSIZE for small files Marcel Ziswiler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438636893.2097.65.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.