From: David Gibson <david@gibson.dropbear.id.au>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency
Date: Sat, 16 Dec 2017 00:01:15 +1100 [thread overview]
Message-ID: <20171215130115.GL7753@umbus.fritz.box> (raw)
In-Reply-To: <40d07664-5f54-bd1c-f7f7-d11e7909e5a6@kaod.org>
[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]
On Fri, Dec 15, 2017 at 08:16:57AM +0100, Cédric Le Goater wrote:
> On 12/15/2017 07:43 AM, Alexey Kardashevskiy wrote:
> > On 15/12/17 17:17, Cédric Le Goater wrote:
> >> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> >> ---
> >> hw/ppc/pnv.c | 84 ++++++++++++++++++++++++++--------------------------
> >> hw/ppc/pnv_core.c | 8 ++---
> >> hw/ppc/pnv_lpc.c | 2 +-
> >> include/hw/ppc/pnv.h | 8 ++---
> >> 4 files changed, 51 insertions(+), 51 deletions(-)
> >>
> >> diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
> >> index c35c439d816b..4bc5f61d0da7 100644
> >> --- a/hw/ppc/pnv.c
> >> +++ b/hw/ppc/pnv.c
> >> @@ -77,7 +77,7 @@ static const char *pnv_chip_core_typename(const PnvChip *o)
> >> * that has a different "affinity". In practice, it means one range
> >> * per chip.
> >> */
> >> -static void powernv_populate_memory_node(void *fdt, int chip_id, hwaddr start,
> >> +static void pnv_populate_memory_node(void *fdt, int chip_id, hwaddr start,
> >> hwaddr size)
> >
> > You may also want to fix indentations like the line above.
>
> yes. I missed that. I should run indent after using sed.
>
> While I am at it, I can also change the name of the routines
> populating the device tree.
>
> David,
>
> are you following more or less this pattern :
>
> <machine>_dt_<device>
Well, I'd only really thought about it for pseries, and I'm using
"spapr_dt_whatever()" there rather than "pseries_dt_whatever()". Plus
that's where I'm intending to head, but I think there are still a fair
few exceptions.
"pnv_dt_whatever()" seems like a good convention for the powernv code,
though.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2017-12-15 13:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 6:17 [Qemu-devel] [PATCH] ppc/pnv: change powernv_ prefix to pnv_ for overall naming consistency Cédric Le Goater
2017-12-15 6:43 ` [Qemu-devel] [Qemu-ppc] " Alexey Kardashevskiy
2017-12-15 7:16 ` Cédric Le Goater
2017-12-15 13:01 ` David Gibson [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=20171215130115.GL7753@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=aik@ozlabs.ru \
--cc=clg@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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;
as well as URLs for NNTP newsgroup(s).