The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/src/commit/?id=5143d8c4434cd336ed0239303a51dc2a2d134eb4
commit 5143d8c4434cd336ed0239303a51dc2a2d134eb4 Author: Gleb Popov <arr...@freebsd.org> AuthorDate: 2024-10-31 16:25:56 +0000 Commit: Gleb Popov <arr...@freebsd.org> CommitDate: 2024-12-10 18:12:32 +0000 netlink: Use __align_up() instead of homegrown roundup2 macro Sponsored by: Future Crew, LLC Approved by: melifaro Differential Revision: https://reviews.freebsd.org/D47333 --- sys/netlink/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))