parisc: fix compile warning in mm/init.c

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Saturday, July 4, 2009 - 2:00 pm

Gitweb:     http://git.kernel.org/linus/20dbc9f724e02c26e30d89cf50e7ce259ab46da4
Commit:     20dbc9f724e02c26e30d89cf50e7ce259ab46da4
Parent:     c3301ab4fb64cf84321d35a8e94f68c94c816dc1
Author:     Kyle McMartin <kyle@mcmartin.ca>
AuthorDate: Tue Jun 23 11:51:43 2009 -0400
Committer:  Kyle McMartin <kyle@mcmartin.ca>
CommitDate: Fri Jul 3 03:34:10 2009 +0000

    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: Kyle McMartin <kyle@mcmartin.ca>
---
 arch/parisc/mm/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c
index 6c5ea96..b0831d9 100644
--- a/arch/parisc/mm/init.c
+++ b/arch/parisc/mm/init.c
@@ -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
 	
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
parisc: fix compile warning in mm/init.c, Linux Kernel Mailing List..., (Sat Jul 4, 2:00 pm)