svn commit: r279587 - head/sys/ofed/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Mar 4 09:58:40 UTC 2015
Author: hselasky
Date: Wed Mar 4 09:58:39 2015
New Revision: 279587
URL: https://svnweb.freebsd.org/changeset/base/279587
Log:
Define PTR_ALIGN() macro which will be needed coming Mellanox driver
releases.
Sponsored by: Mellanox Technologies
MFC after: 3 days
Modified:
head/sys/ofed/include/linux/kernel.h
Modified: head/sys/ofed/include/linux/kernel.h
==============================================================================
--- head/sys/ofed/include/linux/kernel.h Wed Mar 4 09:32:59 2015 (r279586)
+++ head/sys/ofed/include/linux/kernel.h Wed Mar 4 09:58:39 2015 (r279587)
@@ -67,6 +67,8 @@
#undef ALIGN
#define ALIGN(x, y) roundup2((x), (y))
+#undef PTR_ALIGN
+#define PTR_ALIGN(p, a) ((__typeof(p))ALIGN((uintptr_t)(p), (a)))
#define DIV_ROUND_UP howmany
#define FIELD_SIZEOF(t, f) sizeof(((t *)0)->f)
More information about the svn-src-all
mailing list