aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-10-30 16:32:52 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-10-30 16:32:52 +0000
commitbf05cd05ac79bef5f4926b086259bebbf8d36744 (patch)
treea3431bcb801516d9835ed880db61a3770181b10d
parent43f75d57a243e9e2fac963b46f8eb241e7c58435 (diff)
downloadsrc-bf05cd05ac79bef5f4926b086259bebbf8d36744.tar.gz
src-bf05cd05ac79bef5f4926b086259bebbf8d36744.zip
Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 3 days Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=339923
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kernel.h1
1 files changed, 1 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..8d2eab9d5272 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -131,6 +131,7 @@
#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)