Skip to content

Commit

Permalink
[PATCH] powerpc: Fix warning in add_memory
Browse files Browse the repository at this point in the history
arch/powerpc/mm/mem.c: In function `add_memory':
arch/powerpc/mm/mem.c:128: warning: assignment makes integer from pointer without a cast

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Andrew Morton authored and Paul Mackerras committed Mar 23, 2006
1 parent 1d04981 commit 2d0eee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int __devinit add_memory(u64 start, u64 size)
nid = hot_add_scn_to_nid(start);
pgdata = NODE_DATA(nid);

start = __va(start);
start = (unsigned long)__va(start);
create_section_mapping(start, start + size);

/* this should work for most non-highmem platforms */
Expand Down

0 comments on commit 2d0eee1

Please sign in to comment.