From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/4] lin_gadget: use common linux/compat.h
Date: Thu, 26 Apr 2012 12:55:40 +0200 [thread overview]
Message-ID: <20120426125540.402048ba@wker> (raw)
In-Reply-To: <20120426123240.76c4c43a@lmajewski.digital.local>
Hi Lukasz,
On Thu, 26 Apr 2012 12:32:40 +0200
Lukasz Majewski <l.majewski@samsung.com> wrote:
...
> > Now I see another issue. In this 4/4 patch we are removing kmalloc:
> >
> > -#define kmalloc(size, type) memalign(CONFIG_SYS_CACHELINE_SIZE, size)
> >
> > linux/compat.h defines kmalloc() to be malloc(), so the gadget driver
> > should probably use memalign() directly where it is needed?
>
> In the include/usb/lin_gadget_compat.h the
>
> #define kmalloc(size, type) memalign(CONFIG_SYS_CACHELINE_SIZE, size)
> line is defined.
>
> I think that memalign can be used directly, no problem.
Okay, I'll change this patch accordingly and will resubmit v3 then.
Thanks,
Anatolij
next prev parent reply other threads:[~2012-04-26 10:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 23:39 [U-Boot] [PATCH 1/4] gunzip: rename z{alloc, free} to gz{alloc, free} Mike Frysinger
2012-04-09 23:39 ` [U-Boot] [PATCH 2/4] lin_gadget: use common mdelay Mike Frysinger
2012-04-26 12:48 ` Anatolij Gustschin
2012-04-09 23:39 ` [U-Boot] [PATCH 3/4] linux/compat.h: rename from linux/mtd/compat.h Mike Frysinger
2012-04-26 13:03 ` Anatolij Gustschin
2012-04-09 23:39 ` [U-Boot] [PATCH 4/4] lin_gadget: use common linux/compat.h Mike Frysinger
2012-04-25 8:11 ` [U-Boot] [PATCH v2 " Anatolij Gustschin
2012-04-25 15:14 ` Mike Frysinger
2012-04-25 15:58 ` Lukasz Majewski
2012-04-26 9:03 ` Anatolij Gustschin
2012-04-26 10:32 ` Lukasz Majewski
2012-04-26 10:55 ` Anatolij Gustschin [this message]
2012-04-26 12:34 ` [U-Boot] [PATCH v3 " Anatolij Gustschin
2012-04-30 14:51 ` Anatolij Gustschin
2012-04-26 12:47 ` [U-Boot] [PATCH 1/4] gunzip: rename z{alloc, free} to gz{alloc, free} Anatolij Gustschin
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=20120426125540.402048ba@wker \
--to=agust@denx.de \
--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.