diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-03-07 18:48:00 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-03-07 18:48:00 +0000 |
commit | daec60ce10a3358229beb0a5762a9fc19a579272 (patch) | |
tree | 9a50f09a94cb06d5088915bcb8d3855594e9184a /sys/ofed | |
parent | 68965d6dcde87e235aebd7a8daa1222043114e4d (diff) | |
download | FreeBSD-src-daec60ce10a3358229beb0a5762a9fc19a579272.zip FreeBSD-src-daec60ce10a3358229beb0a5762a9fc19a579272.tar.gz |
MFC r279587:
Define PTR_ALIGN() macro which will be needed coming Mellanox driver
releases.
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-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 d9d1ab6..13f4e67 100644 --- a/sys/ofed/include/linux/kernel.h +++ b/sys/ofed/include/linux/kernel.h @@ -63,6 +63,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 printk(X...) printf(X) |