All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.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 10:49:25 -0500	[thread overview]
Message-ID: <1439912965.2784.3.camel@freescale.com> (raw)
In-Reply-To: <CAPnjgZ01oYqpMYWTeRKFUktL88Hdne7CNY2wtm_Tg5mBV0SdDQ@mail.gmail.com>

On Tue, 2015-08-18 at 06:44 -0600, Simon Glass wrote:
> Hi Marcel,
> 
> On 18 August 2015 at 05:06, Marcel Ziswiler <marcel@ziswiler.com> 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 previously asked for it to not go into malloc.h, in order to not mix 
upstream dlmalloc stuff with U-Boot things.

-Scott

  parent reply	other threads:[~2015-08-18 15:49 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
2015-08-18 15:49   ` Scott Wood [this message]
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=1439912965.2784.3.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.