diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-03-04 09:58:39 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-03-04 09:58:39 +0000 |
commit | e5a77689c2f3d6165cb5a1078df04c9936ab9060 (patch) | |
tree | 64b808b7ccad56c46f48f29e907fbb2b79275c82 | |
parent | 781f97cbbcfea7e235b679de50aa01bef43b630f (diff) | |
download | FreeBSD-src-e5a77689c2f3d6165cb5a1078df04c9936ab9060.zip FreeBSD-src-e5a77689c2f3d6165cb5a1078df04c9936ab9060.tar.gz |
Define PTR_ALIGN() macro which will be needed coming Mellanox driver
releases.
Sponsored by: Mellanox Technologies
MFC after: 3 days
-rw-r--r-- | sys/ofed/include/linux/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ofed/include/linux/kernel.h b/sys/ofed/include/linux/kernel.h index d07b3eb..f205e20 100644 --- a/sys/ofed/include/linux/kernel.h +++ b/sys/ofed/include/linux/kernel.h @@ -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) |