Skip to content

Commit

Permalink
m68knommu: Make empty_zero_page "void *", like on m68k
Browse files Browse the repository at this point in the history
This allows to get rid of the casts.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Geert Uytterhoeven authored and Greg Ungerer committed Jul 25, 2011
1 parent b6844e8 commit 45d1564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/m68k/mm/init_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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).
Expand Down

0 comments on commit 45d1564

Please sign in to comment.