From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: David Howells <dhowells@redhat.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] NOMMU: Rename PowerPC's struct vm_region
Date: Thu, 11 Dec 2008 09:37:09 -0500 [thread overview]
Message-ID: <20081211093709.30ca04f6@zod.rchland.ibm.com> (raw)
In-Reply-To: <20081211125354.20641.23213.stgit@warthog.procyon.org.uk>
On Thu, 11 Dec 2008 12:53:54 +0000
David Howells <dhowells@redhat.com> wrote:
> Rename PowerPC's struct vm_region so that I can introduce my own global version
> for NOMMU. It's feasible that the PowerPC version may wish to use my global
> one instead.
>
> The NOMMU vm_region struct defines areas of the physical memory map that are
> under mmap. This may include chunks of RAM or regions of memory mapped
> devices, such as flash. It is also used to retain copies of file content so
> that shareable private memory mappings of files can be made. As such, it may
> be compatible with what is described in the banner comment for PowerPC's
> vm_region struct.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---
>
> arch/powerpc/lib/dma-noncoherent.c | 24 ++++++++++++------------
> 1 files changed, 12 insertions(+), 12 deletions(-)
>
>
> diff --git a/arch/powerpc/lib/dma-noncoherent.c b/arch/powerpc/lib/dma-noncoherent.c
> index 31734c0..a55c6ca 100644
> --- a/arch/powerpc/lib/dma-noncoherent.c
> +++ b/arch/powerpc/lib/dma-noncoherent.c
> @@ -77,26 +77,26 @@ static DEFINE_SPINLOCK(consistent_lock);
> * the amount of RAM found at boot time.) I would imagine that get_vm_area()
> * would have to initialise this each time prior to calling vm_region_alloc().
> */
> -struct vm_region {
> +struct ppc_vm_region {
> struct list_head vm_list;
> unsigned long vm_start;
> unsigned long vm_end;
> };
>
> -static struct vm_region consistent_head = {
> +static struct ppc_vm_region consistent_head = {
> .vm_list = LIST_HEAD_INIT(consistent_head.vm_list),
> .vm_start = CONSISTENT_BASE,
> .vm_end = CONSISTENT_END,
> };
>
> -static struct vm_region *
> -vm_region_alloc(struct vm_region *head, size_t size, gfp_t gfp)
> +static struct ppc_vm_region *
> +ppc_vm_region_alloc(struct ppc_vm_region *head, size_t size, gfp_t gfp)
Is there a reason you renamed all the function names as well when they
are static?
josh
next prev parent reply other threads:[~2008-12-11 14:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-11 12:53 [PATCH] NOMMU: Rename PowerPC's struct vm_region David Howells
2008-12-11 14:37 ` Josh Boyer [this message]
2008-12-11 14:54 ` David Howells
2008-12-12 10:15 ` Benjamin Herrenschmidt
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=20081211093709.30ca04f6@zod.rchland.ibm.com \
--to=jwboyer@linux.vnet.ibm.com \
--cc=dhowells@redhat.com \
--cc=linuxppc-dev@ozlabs.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).