aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-02 14:42:26 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:52 -0700
commit3d5392cefabc1a9b7dd9c853439d3262c5374829 (patch)
treebcf989167b78a56ba461248254aabca7e5a957d6 /module
parent0fac9c9e6d8d74f56be09cd84ffb30197d2dcaad (diff)
Remove kvasprintf() wrapper
The kvasprintf() function has been available since Linux 2.6.22. There is no longer a need to maintain this compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-kmem.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/module/spl/spl-kmem.c b/module/spl/spl-kmem.c
index caeb324b3..425dfd421 100644
--- a/module/spl/spl-kmem.c
+++ b/module/spl/spl-kmem.c
@@ -128,29 +128,6 @@ kmem_debugging(void)
}
EXPORT_SYMBOL(kmem_debugging);
-#ifndef HAVE_KVASPRINTF
-/* Simplified asprintf. */
-char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap)
-{
- unsigned int len;
- char *p;
- va_list aq;
-
- va_copy(aq, ap);
- len = vsnprintf(NULL, 0, fmt, aq);
- va_end(aq);
-
- p = kmalloc(len+1, gfp);
- if (!p)
- return NULL;
-
- vsnprintf(p, len+1, fmt, ap);
-
- return p;
-}
-EXPORT_SYMBOL(kvasprintf);
-#endif /* HAVE_KVASPRINTF */
-
char *
kmem_vasprintf(const char *fmt, va_list ap)
{