aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed/include/linux
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-02-16 21:22:56 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-02-16 21:22:56 +0000
commit7383a0591c80071ce8b1d1524943d4bdf91dca4a (patch)
treee53f2728f746320434e9ae495e08b628bbceed07 /sys/ofed/include/linux
parent13087ee99ffebcc7e8637c994b1829ef885d2997 (diff)
Notes
Diffstat (limited to 'sys/ofed/include/linux')
-rw-r--r--sys/ofed/include/linux/device.h13
-rw-r--r--sys/ofed/include/linux/linux_compat.c14
2 files changed, 15 insertions, 12 deletions
diff --git a/sys/ofed/include/linux/device.h b/sys/ofed/include/linux/device.h
index f7bb0fb646da..87cf0e84de51 100644
--- a/sys/ofed/include/linux/device.h
+++ b/sys/ofed/include/linux/device.h
@@ -431,17 +431,6 @@ static inline char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap)
return p;
}
-static inline char *kasprintf(gfp_t gfp, const char *fmt, ...)
-{
- va_list ap;
- char *p;
-
- va_start(ap, fmt);
- p = kvasprintf(gfp, fmt, ap);
- va_end(ap);
-
- return p;
-}
-
+char *kasprintf(gfp_t, const char *, ...);
#endif /* _LINUX_DEVICE_H_ */
diff --git a/sys/ofed/include/linux/linux_compat.c b/sys/ofed/include/linux/linux_compat.c
index 081177dad649..5dc881db703a 100644
--- a/sys/ofed/include/linux/linux_compat.c
+++ b/sys/ofed/include/linux/linux_compat.c
@@ -712,6 +712,20 @@ vunmap(void *addr)
kfree(vmmap);
}
+
+char *
+kasprintf(gfp_t gfp, const char *fmt, ...)
+{
+ va_list ap;
+ char *p;
+
+ va_start(ap, fmt);
+ p = kvasprintf(gfp, fmt, ap);
+ va_end(ap);
+
+ return p;
+}
+
static void
linux_compat_init(void)
{