diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2024-10-31 16:25:56 +0000 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2024-12-10 18:12:32 +0000 |
commit | 5143d8c4434cd336ed0239303a51dc2a2d134eb4 (patch) | |
tree | 90a384ea4e50a494d77e8ae74f058804d526ffcc | |
parent | 9df901c8f8c8f6a0766d87fbc6ef3dc1b73423f8 (diff) |
netlink: Use __align_up() instead of homegrown roundup2 macro
Sponsored by: Future Crew, LLC
Approved by: melifaro
Differential Revision: https://reviews.freebsd.org/D47333
-rw-r--r-- | sys/netlink/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h index a87363197187..d8cf1401fcd0 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -195,7 +195,7 @@ enum nlmsginfo_attrs { #define NL_ITEM_ALIGN_SIZE sizeof(uint32_t) -#define NL_ITEM_ALIGN(_len) roundup2(_len, NL_ITEM_ALIGN_SIZE) +#define NL_ITEM_ALIGN(_len) __align_up(_len, NL_ITEM_ALIGN_SIZE) #define NL_ITEM_DATA(_ptr, _off) ((void *)((char *)(_ptr) + _off)) #define NL_ITEM_DATA_CONST(_ptr, _off) ((const void *)((const char *)(_ptr) + _off)) |