From: Marcel Ziswiler <marcel@ziswiler.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND PATCH v6] mtd/nand/ubi: assortment of alignment fixes
Date: Tue, 18 Aug 2015 16:32:53 +0200 [thread overview]
Message-ID: <1439908373.2934.21.camel@ziswiler.com> (raw)
In-Reply-To: <CAPnjgZ01oYqpMYWTeRKFUktL88Hdne7CNY2wtm_Tg5mBV0SdDQ@mail.gmail.com>
On Tue, 2015-08-18 at 06:44 -0600, Simon Glass wrote:
> > diff --git a/include/common.h b/include/common.h
> > index c48e5bc..c12f402 100644
> > --- a/include/common.h
> > +++ b/include/common.h
> > @@ -1060,6 +1060,15 @@ int cpu_release(int nr, int argc, char *
> > const argv[]);
> > #define DEFINE_CACHE_ALIGN_BUFFER(type, name, size)
> > \
> > DEFINE_ALIGN_BUFFER(type, name, size, ARCH_DMA_MINALIGN)
> >
> > +#ifndef __ASSEMBLY__
> > +#include <malloc.h>
> > +
> > +static inline void *malloc_cache_aligned(size_t size)
> > +{
> > + return memalign(ARCH_DMA_MINALIGN, ALIGN(size,
> > ARCH_DMA_MINALIGN));
> > +}
> > +#endif
>
> Should this go in malloc.h?
I had it there before but Scott suggested otherwise:
https://patchwork.ozlabs.org/patch/503291/
next prev parent reply other threads:[~2015-08-18 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 11:06 [U-Boot] [RESEND PATCH v6] mtd/nand/ubi: assortment of alignment fixes Marcel Ziswiler
2015-08-18 12:44 ` Simon Glass
2015-08-18 14:32 ` Marcel Ziswiler [this message]
2015-08-18 15:49 ` Scott Wood
2015-08-18 15:54 ` Simon Glass
2015-08-28 21:03 ` [U-Boot] [U-Boot, RESEND, " Tom Rini
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=1439908373.2934.21.camel@ziswiler.com \
--to=marcel@ziswiler.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.