svn commit: r339996 - stable/12/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Nov 1 14:42:15 UTC 2018
Author: hselasky
Date: Thu Nov 1 14:42:14 2018
New Revision: 339996
URL: https://svnweb.freebsd.org/changeset/base/339996
Log:
MFC r339923:
Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
Approved by: re (kib)
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
Modified:
stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Nov 1 14:24:12 2018 (r339995)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Nov 1 14:42:14 2018 (r339996)
@@ -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)
More information about the svn-src-all
mailing list