Skip to content

Commit

Permalink
parisc: fix compile warning in mm/init.c
Browse files Browse the repository at this point in the history
arch/parisc/mm/init.c: In function 'free_initmem':
381: warning: passing argument 1 of 'memset' makes pointer from integer without a cast

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
  • Loading branch information
Kyle McMartin committed Jul 3, 2009
1 parent c3301ab commit 20dbc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void free_initmem(void)
/* Attempt to catch anyone trying to execute code here
* by filling the page with BRK insns.
*/
memset(init_begin, 0x00, init_end - init_begin);
memset((void *)init_begin, 0x00, init_end - init_begin);
flush_icache_range(init_begin, init_end);
#endif

Expand Down

0 comments on commit 20dbc9f

Please sign in to comment.