svn commit: r345127 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Mar 14 09:18:55 UTC 2019
Author: hselasky
Date: Thu Mar 14 09:18:54 2019
New Revision: 345127
URL: https://svnweb.freebsd.org/changeset/base/345127
Log:
Revert r345102 until the DRM next port issues are resolved.
Requested by: Johannes Lundberg <johalun0 at gmail.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/compat/linuxkpi/common/include/linux/kernel.h
Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Mar 14 08:27:01 2019 (r345126)
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Mar 14 09:18:54 2019 (r345127)
@@ -130,11 +130,9 @@
#define ALIGN(x, y) roundup2((x), (y))
#undef PTR_ALIGN
#define PTR_ALIGN(p, a) ((__typeof(p))ALIGN((uintptr_t)(p), (a)))
-#define IS_ALIGNED(x, a) (((x) & ((__typeof(x))(a) - 1)) == 0)
#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 DIV_ROUND_DOWN_ULL(x, n) (((unsigned long long)(x) / (n)) * (n))
#define FIELD_SIZEOF(t, f) sizeof(((t *)0)->f)
#define printk(...) printf(__VA_ARGS__)
More information about the svn-src-head
mailing list