From: Sergei Shtylyov <sshtylyov@ru•mvista.com>
To: Nathan Fontenot <nfont@austin•ibm.com>
Cc: linuxppc-dev@ozlabs•org
Subject: Re: [PATCH 1/5] Allow drc indexes to be specified in formats other than decimal
Date: Sat, 21 Jun 2008 03:18:23 +0400 [thread overview]
Message-ID: <485C3ABF.7030008@ru.mvista.com> (raw)
In-Reply-To: <485C2134.4030109@austin.ibm.com>
Hello.
Nathan Fontenot wrote:
> Allow the drc index passed to the /proc/ppc64/ofdt file to be specified
> in formats other than decimal. This allows us to easily specify drc
> indexes
> in hex that would otherwise appears as negative integers.
>
> Signed-off-by: Nathan Fontenot <nfont@austin•ibm.com>
> ---
>
> Index: linux-2.6.git/arch/powerpc/platforms/pseries/reconfig.c
> ===================================================================
> --- linux-2.6.git.orig/arch/powerpc/platforms/pseries/reconfig.c
> 2008-06-03 16:29:04.000000000 -0500
> +++ linux-2.6.git/arch/powerpc/platforms/pseries/reconfig.c
> 2008-06-19 22:03:12.000000000 -0500
> @@ -365,7 +365,7 @@
> *buf = '\0';
> buf++;
>
> - handle = simple_strtoul(handle_str, NULL, 10);
> + handle = simple_strtoul(handle_str, NULL, 0);
I guess checkpatch.pl told you to consider switching to
strict_strtol()? :-)
WBR, Sergei
next prev parent reply other threads:[~2008-06-20 23:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 21:25 [PATCH 0/5] Updates for memory dlpar and dynamic reconfiguration memory Nathan Fontenot
2008-06-20 21:29 ` [PATCH 1/5] Allow drc indexes to be specified in formats other than decimal Nathan Fontenot
2008-06-20 23:18 ` Sergei Shtylyov [this message]
2008-06-23 2:58 ` Nathan Fontenot
2008-06-20 21:30 ` [PATCH 2/5] Use the base address of lmbs instead of drc index for dlpar Nathan Fontenot
2008-06-20 21:32 ` [PATCH 3/5] Update device tree correctly for drconf memory add/remove Nathan Fontenot
2008-06-20 21:34 ` [PATCH 4/5] Helper routines for parsing drconf memory Nathan Fontenot
2008-06-30 12:41 ` Paul Mackerras
2008-07-01 13:54 ` Nathan Fontenot
2008-06-20 21:36 ` [PATCH 5/5] Add ability to associate drconf memory sections in hotplug memory add Nathan Fontenot
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=485C3ABF.7030008@ru.mvista.com \
--to=sshtylyov@ru$(echo .)mvista.com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=nfont@austin$(echo .)ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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