aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/kernel.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-11-04 15:49:06 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-11-04 15:49:06 +0000
commit2a22df74e9fceaffd62ee437de08383d6cf8cfe0 (patch)
treed4887f0719a9a8b98c787012703fa65e21554dc8 /sys/compat/linuxkpi/common/include/linux/kernel.h
parent689486003b2d4637b61b61d5a30bf98fb11ddc16 (diff)
parent6d080f8660b370f83eb10a840b6d14b6dd84a1de (diff)
Notes
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/kernel.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index b66323d945de..5ff30ba9c28d 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -131,12 +131,16 @@
#undef PTR_ALIGN
#define PTR_ALIGN(p, a) ((__typeof(p))ALIGN((uintptr_t)(p), (a)))
#define DIV_ROUND_UP(x, n) howmany(x, n)
+#define __KERNEL_DIV_ROUND_UP(x, n) howmany(x, n)
#define DIV_ROUND_UP_ULL(x, n) DIV_ROUND_UP((unsigned long long)(x), (n))
#define FIELD_SIZEOF(t, f) sizeof(((t *)0)->f)
#define printk(...) printf(__VA_ARGS__)
#define vprintk(f, a) vprintf(f, a)
+extern void linux_dump_stack(void);
+#define dump_stack() linux_dump_stack()
+
struct va_format {
const char *fmt;
va_list *va;