From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Shevchenko Andriy (EXT-Teleca/Helsinki)"
<ext-andriy.shevchenko@nokia.com>
Subject: Re: [PATCH] dspbridge: use linux memory allocator directly
Date: Thu, 3 Sep 2009 09:57:02 +0300 [thread overview]
Message-ID: <20090903065702.GA31145@nokia.com> (raw)
In-Reply-To: <1251960538-24736-1-git-send-email-andy.shevchenko@gmail.com>
Hi,
On Thu, Sep 03, 2009 at 08:48:58AM +0200, ext Andy Shevchenko wrote:
> @@ -85,9 +85,9 @@ struct LST_LIST {
> static inline struct LST_LIST *LST_Create(void)
> {
> struct LST_LIST *pList;
> + gfp_t flags = (in_atomic()) ? GFP_ATOMIC : GFP_KERNEL;
>
> - pList = (struct LST_LIST *) MEM_Calloc(sizeof(struct LST_LIST),
> - MEM_NONPAGED);
> + pList = (struct LST_LIST *) kzalloc(sizeof(struct LST_LIST), flags);
no need for casting either :-)
--
balbi
prev parent reply other threads:[~2009-09-03 6:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 11:39 dspbridge: draft: get rid of services/list.c Andy Shevchenko
2009-09-01 11:39 ` [PATCH 1/2] DSPBRIDGE: Get rid of services/list.c (step 1) Andy Shevchenko
2009-09-01 11:39 ` [PATCH 2/2] DSPBRIDGE: Get rid of services/list.c (step 2) Andy Shevchenko
2009-09-02 17:27 ` [PATCH] dspbridge: use linux memory allocator directly Andy Shevchenko
2009-09-02 17:49 ` Imre Deak
2009-09-03 6:48 ` Andy Shevchenko
2009-09-03 6:57 ` Felipe Balbi [this message]
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=20090903065702.GA31145@nokia.com \
--to=felipe.balbi@nokia.com \
--cc=andy.shevchenko@gmail.com \
--cc=ext-andriy.shevchenko@nokia.com \
--cc=linux-omap@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox