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 21:09:19 +0000 [thread overview]
Message-ID: <440B537F.2040300@kroon.co.za> (raw)
In-Reply-To: <1141548097.6426.9.camel@alice>
[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]
Eric Sesterhenn wrote:
> hi,
>
>
>>>--- linux-2.6.16-rc5-mm1/lib/genalloc.c.orig
>>>+++ linux-2.6.16-rc5-mm1/lib/genalloc.c
>>>@@ -47,20 +47,17 @@ struct gen_pool *gen_pool_create(int nr_
>>> if (!max_chunk_shift)
>>> max_chunk_shift = PAGE_SHIFT;
>>>
>>>- poolp = kmalloc(sizeof(struct gen_pool), GFP_KERNEL);
>>>+ poolp = kzalloc(sizeof(struct gen_pool), GFP_KERNEL);
>>> 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.
>
> attached patch below. Is there something like a cross compiler live cd,
> so one can put time where concentration is missing to catch such stuff?
Why would you need a cross-compiler live cd? I've used the Gentoo
crossdev package on Friday to build cross-compilers on my system for
other architectures which would allow you to pass two flags to the
kernel build process, for example:
$ make ARCH=ia64 CROSS_COMPILE=x86_64-pc-linux-gnu- allyesconfig
$ make ARCH=ia64 CROSS_COMPILE=x86_64-pc-linux-gnu-
to build for ia64, or to build for armeb:
$ make ARCH=arm CROSS_COMPILE=armeb-unknown-linux-gnu- ixdp2801_defconfig
$ make ARCH=arm CROSS_COMPILE=armeb-unknown-linux-gnu-
And so forth. This of course assumes that the required compilers exist.
Jaco
--
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
prev parent reply other threads:[~2006-03-05 21:09 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
2006-03-05 20:50 ` Eric Sesterhenn
2006-03-05 20:55 ` Eric Sesterhenn
2006-03-05 21:09 ` Jaco Kroon [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=440B537F.2040300@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.