lkml.org 
[lkml]   [2011]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] m68knommu: Make empty_zero_page "void *", like on m68k
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


\
 
 \ /
  Last update: 2011-05-26 06:41    [W:0.064 / U:9.124 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site