patch-2.1.45 linux/mm/slab.c

Next file: linux/mm/swapfile.c
Previous file: linux/mm/simp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/mm/slab.c linux/mm/slab.c
@@ -1275,7 +1275,7 @@
 }
 
 static void
-kmem_report_free_err(const char *str, void *objp, kmem_cache_t * cachep)
+kmem_report_free_err(const char *str, const void *objp, kmem_cache_t * cachep)
 {
 	if (cachep)
 		SLAB_STATS_INC_ERR(cachep);
@@ -1456,7 +1456,7 @@
  * it should be in this state _before_ it is released.
  */
 static inline void
-__kmem_cache_free(kmem_cache_t *cachep, void *objp)
+__kmem_cache_free(kmem_cache_t *cachep, const void *objp)
 {
 	kmem_slab_t	*slabp;
 	kmem_bufctl_t	*bufp;
@@ -1653,7 +1653,7 @@
 }
 
 void
-kfree_s(void *objp, size_t size)
+kfree_s(const void *objp, size_t size)
 {
 	struct page *page;
 	int	nr;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov