From: Jaco Kroon <jaco@kroon.co.za>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [Patch] kzalloc() conversion in lib/
Date: Sun, 05 Mar 2006 20:43:46 +0000 [thread overview]
Message-ID: <440B4D82.8070705@kroon.co.za> (raw)
In-Reply-To: <1141548097.6426.9.camel@alice>
[-- Attachment #1.1: Type: text/plain, Size: 919 bytes --]
Alexey Dobriyan wrote:
> On Sun, Mar 05, 2006 at 09:41:37AM +0100, Eric Sesterhenn wrote:
>
>>this patch converts lib/ to kzalloc usage.
>>Compile tested with allyesconfig.
>> if (!poolp)
>> return NULL;
>>- memset(poolp, 0, sizeof(struct gen_pool));
>>- poolp->h = kmalloc(sizeof(struct gen_pool_link) *
>>- (max_chunk_shift - ALLOC_MIN_SHIFT + 1),
>>- GFP_KERNEL);
>>+ poolp->h = kcalloc((max_chunk_shift - ALLOC_MIN_SHIFT + ),
>
>
> This will screw ia64.
>
I don't see how it would even compile in the first place. But would you
mind explaining how this would screw ia64?
>
>>+ sizeof(struct gen_pool_link),
>>+ GFP_KERNEL);
>> if (!poolp->h) {
>> printk(KERN_WARNING "gen_pool_alloc() failed to allocate\n");
>> kfree(poolp);
>> return NULL;
>> }
--
There are only 10 kinds of people in this world,
those that understand binary and those that don't.
http://www.kroon.co.za/
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3233 bytes --]
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2006-03-05 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-05 8:41 [KJ] [Patch] kzalloc() conversion in lib/ Eric Sesterhenn
2006-03-05 17:58 ` Alexey Dobriyan
2006-03-05 20:43 ` Jaco Kroon [this message]
2006-03-05 20:50 ` Eric Sesterhenn
2006-03-05 20:55 ` Eric Sesterhenn
2006-03-05 21:09 ` Jaco Kroon
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=440B4D82.8070705@kroon.co.za \
--to=jaco@kroon.co.za \
--cc=kernel-janitors@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 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.