mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
43f75d57a2
commit
bf05cd05ac
1 changed files with 1 additions and 0 deletions
|
|
@ -131,6 +131,7 @@
|
|||
#undef PTR_ALIGN
|
||||
#define PTR_ALIGN(p, a) ((__typeof(p))ALIGN((uintptr_t)(p), (a)))
|
||||
#define DIV_ROUND_UP(x, n) howmany(x, n)
|
||||
#define __KERNEL_DIV_ROUND_UP(x, n) howmany(x, n)
|
||||
#define DIV_ROUND_UP_ULL(x, n) DIV_ROUND_UP((unsigned long long)(x), (n))
|
||||
#define FIELD_SIZEOF(t, f) sizeof(((t *)0)->f)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue