From: Khalid Aziz <khalid_aziz@hp.com>
To: linux-ia64@vger.kernel.org
Subject: RE: [PATCH] Updated /proc/iomem patch
Date: Wed, 28 Sep 2005 21:31:29 +0000 [thread overview]
Message-ID: <1127943089.17938.22.camel@lyra.fc.hp.com> (raw)
In-Reply-To: <1126716323.29344.55.camel@lyra.fc.hp.com>
Sorry Tony. Your email got buried and I just saw it. My comments below.
On Fri, 2005-09-16 at 14:02 -0700, Luck, Tony wrote:
> Just a couple of quibbles:
>
> You still tested for md->num_pages = 0 with a comment saying
> that this may be the result of trimming. With the clean-up
> to efi_memmap_walk() we don't trim any more, so perhaps this
> whole test can go? I've kept it with a toned down comment
> (as paranoia against an implementation of EFI that hands us
> a zero sized object).
This was just a paranoidal check.
>
> What do you need from the "Kernel data" information? Right
> now you use _edata as the end point ... which is the end of
> initialized data from the kernel Elf file. But perhaps it
> might be more sane to include all the other sections that
> follow ... and use "_end" as the endpoint (actually _end
> rounded up to a page boundary) ... which neatly fill in the
> block of "System RAM" that the kernel is a sub-resource of
> without leaving some nebulous hole at the end. I haven't
> changed this yet ... pending your reply on what is needed.
>
Using _end as endpoint sounds reasonable. Feel free to change it if you
have not done so already.
> And some minor nits (all of which I've fixed)
>
> use kcalloc() rather than kmalloc+memset
>
> delay calling the allocator until you know you need it
>
> register_memory() throws a warning from the __initcall,
> it needs to be an "int" returning function, not "void".
>
> stylistically I don't like "continue; break;"
>
> s/printk("ERROR/printk(KERN_ERR "/
>
> trailing white space deleted
>
> -Tony
>
--
Khalid
==================================
Khalid Aziz Open Source and Linux Organization
(970)898-9214 Hewlett-Packard
khalid.aziz@hp.com Fort Collins, CO
"The Linux kernel is subject to relentless development"
- Alessandro Rubini
prev parent reply other threads:[~2005-09-28 21:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 16:45 [PATCH] Updated /proc/iomem patch Khalid Aziz
2005-09-14 18:32 ` Bjorn Helgaas
2005-09-15 16:26 ` Khalid Aziz
2005-09-15 16:46 ` Bjorn Helgaas
2005-09-15 17:27 ` Khalid Aziz
2005-09-16 15:26 ` Khalid Aziz
2005-09-16 21:02 ` Luck, Tony
2005-09-28 21:31 ` Khalid Aziz [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=1127943089.17938.22.camel@lyra.fc.hp.com \
--to=khalid_aziz@hp.com \
--cc=linux-ia64@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