diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2015-02-16 21:22:56 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2015-02-16 21:22:56 +0000 |
| commit | 7383a0591c80071ce8b1d1524943d4bdf91dca4a (patch) | |
| tree | e53f2728f746320434e9ae495e08b628bbceed07 /sys/ofed/include/linux | |
| parent | 13087ee99ffebcc7e8637c994b1829ef885d2997 (diff) | |
Notes
Diffstat (limited to 'sys/ofed/include/linux')
| -rw-r--r-- | sys/ofed/include/linux/device.h | 13 | ||||
| -rw-r--r-- | sys/ofed/include/linux/linux_compat.c | 14 |
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) { |
