Define PTR_ALIGN() macro which will be needed coming Mellanox driver

releases.

Sponsored by:	Mellanox Technologies
MFC after:	3 days
This commit is contained in:
Hans Petter Selasky 2015-03-04 09:58:39 +00:00
parent 2b8859521d
commit e53c954d45

View File

@ -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)