Skip to content
Snippets Groups Projects
Commit 20dbc9f7 authored by Kyle McMartin's avatar Kyle McMartin
Browse files

parisc: fix compile warning in mm/init.c


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: default avatarKyle McMartin <kyle@mcmartin.ca>
parent c3301ab4
No related branches found
No related tags found
No related merge requests found
...@@ -378,7 +378,7 @@ void free_initmem(void) ...@@ -378,7 +378,7 @@ void free_initmem(void)
/* Attempt to catch anyone trying to execute code here /* Attempt to catch anyone trying to execute code here
* by filling the page with BRK insns. * 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); flush_icache_range(init_begin, init_end);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment