parisc: fix compile warning in mm/init.c
authorKyle McMartin <kyle@mcmartin.ca>
Tue, 23 Jun 2009 15:51:43 +0000 (11:51 -0400)
committerKyle McMartin <kyle@mcmartin.ca>
Fri, 3 Jul 2009 03:34:10 +0000 (03:34 +0000)
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>
arch/parisc/mm/init.c

index 6c5ea964647cf71adcf94cd18e5b6e76fce944e3..b0831d9e35cba677d153af1ac7efd0583fc618aa 100644 (file)
@@ -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