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:
parent
2b8859521d
commit
e53c954d45
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user