From a9b0cc13914324b0d4fa347c107d82166f3b1555 Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <tschwinge@gnu.org>
Date: Wed, 25 Apr 2007 13:44:11 +0000
Subject: 2007-04-25  Thomas Schwinge  <tschwinge@gnu.org>

* linux/dev/glue/kmem.c (vmalloc_list_remove): Cast the first argument
	in the `kfree' call to what is expected.
---
 linux/dev/glue/kmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'linux')

diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c
index 9f0412f4..908d0869 100644
--- a/linux/dev/glue/kmem.c
+++ b/linux/dev/glue/kmem.c
@@ -525,7 +525,7 @@ vmalloc_list_remove (struct vmalloc_struct *p)
   p->next->prev = p->prev;
   p->prev->next = p->next;
 
-  kfree (p, sizeof (struct vmalloc_struct));
+  kfree ((vm_offset_t) p, sizeof (struct vmalloc_struct));
 }
 
 /* Allocate SIZE bytes of memory.  The pages need not be contiguous.  */
-- 
cgit v1.2.3