summaryrefslogtreecommitdiffstats
path: root/include/sys/kmem.h
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2012-06-25 13:22:21 -0400
committerBrian Behlendorf <[email protected]>2012-07-03 16:07:27 -0700
commit973e8269bd99f9440149892d598f8914113d0278 (patch)
tree18afae523a87337f8f884fd3580ea82b2527e3b0 /include/sys/kmem.h
parent33f507c0f3fb9976274bcf081bc0ce6fc3d5a771 (diff)
Constify memory management functions
This prevents warnings in ZFS that were caused by changes necessary to support PaX patched kernels. When debugging is enabled, these warnings become build failures. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #131
Diffstat (limited to 'include/sys/kmem.h')
-rw-r--r--include/sys/kmem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h
index eda4eee8d..796af44e8 100644
--- a/include/sys/kmem.h
+++ b/include/sys/kmem.h
@@ -214,9 +214,9 @@ extern unsigned long long vmem_alloc_max;
# define vmem_free(ptr, sz) vmem_free_track((ptr), (sz))
extern void *kmem_alloc_track(size_t, int, const char *, int, int, int);
-extern void kmem_free_track(void *, size_t);
+extern void kmem_free_track(const void *, size_t);
extern void *vmem_alloc_track(size_t, int, const char *, int);
-extern void vmem_free_track(void *, size_t);
+extern void vmem_free_track(const void *, size_t);
# else /* DEBUG_KMEM_TRACKING */
/*
@@ -243,9 +243,9 @@ extern void vmem_free_track(void *, size_t);
# define vmem_free(ptr, sz) vmem_free_debug((ptr), (sz))
extern void *kmem_alloc_debug(size_t, int, const char *, int, int, int);
-extern void kmem_free_debug(void *, size_t);
+extern void kmem_free_debug(const void *, size_t);
extern void *vmem_alloc_debug(size_t, int, const char *, int);
-extern void vmem_free_debug(void *, size_t);
+extern void vmem_free_debug(const void *, size_t);
# endif /* DEBUG_KMEM_TRACKING */
#else /* DEBUG_KMEM */