public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@snapgear.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>, <linux-kernel@vger.kernel.org>,
	<uclinux-dev@uclinux.org>
Subject: Re: [PATCH 3/4] m68knommu: Make empty_zero_page "void *", like on m68k
Date: Thu, 26 May 2011 14:39:10 +1000	[thread overview]
Message-ID: <4DDDD96E.3020604@snapgear.com> (raw)
In-Reply-To: <1306314660-19288-1-git-send-email-geert@linux-m68k.org>

Hi Geert,

On 25/05/11 19:10, Geert Uytterhoeven wrote:
> This allows to get rid of the casts.
>
> Signed-off-by: Geert Uytterhoeven<geert@linux-m68k.org>

Looks good:

Acked-by: Greg Ungerer <gerg@uclinux.org>

Do you want me to add to the m68knommu git tree?
Or are these part of a series you intend pushing yourself?

Regards
Greg



> ---
>   arch/m68k/mm/init_no.c |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/m68k/mm/init_no.c b/arch/m68k/mm/init_no.c
> index 7cbd7bd..fdbe679 100644
> --- a/arch/m68k/mm/init_no.c
> +++ b/arch/m68k/mm/init_no.c
> @@ -42,7 +42,7 @@
>    * ZERO_PAGE is a special page that is used for zero-initialized
>    * data and COW.
>    */
> -unsigned long empty_zero_page;
> +void *empty_zero_page;
>
>   extern unsigned long memory_start;
>   extern unsigned long memory_end;
> @@ -62,8 +62,8 @@ void __init paging_init(void)
>   	unsigned long end_mem   = memory_end&  PAGE_MASK;
>   	unsigned long zones_size[MAX_NR_ZONES] = {0, };
>
> -	empty_zero_page = (unsigned long)alloc_bootmem_pages(PAGE_SIZE);
> -	memset((void *)empty_zero_page, 0, PAGE_SIZE);
> +	empty_zero_page = alloc_bootmem_pages(PAGE_SIZE);
> +	memset(empty_zero_page, 0, PAGE_SIZE);
>
>   	/*
>   	 * Set up SFC/DFC registers (user data space).


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

  parent reply	other threads:[~2011-05-26  4:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25  9:10 [PATCH 3/4] m68knommu: Make empty_zero_page "void *", like on m68k Geert Uytterhoeven
2011-05-25  9:11 ` [PATCH 4/4] m68knommu: Fix printk() format in free_initrd_mem() Geert Uytterhoeven
2011-05-26  4:41   ` Greg Ungerer
2011-05-26  4:39 ` Greg Ungerer [this message]
2011-05-26  5:11   ` [PATCH 3/4] m68knommu: Make empty_zero_page "void *", like on m68k Geert Uytterhoeven
2011-05-26  5:52     ` Greg Ungerer

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=4DDDD96E.3020604@snapgear.com \
    --to=gerg@snapgear.com \
    --cc=geert@linux-m68k.org \
    --cc=gerg@uclinux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=uclinux-dev@uclinux.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