From 3d505310b1bb259c3e5f39d8c88a465cf1403934 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 26 Apr 2026 05:22:52 +0300 Subject: [PATCH] sys/rangelock.h: explicitly enumerate padding at the end of the structure Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56912 --- sys/sys/rangelock.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/rangelock.h b/sys/sys/rangelock.h index 32ccf3427b4..ea3d0c26cd3 100644 --- a/sys/sys/rangelock.h +++ b/sys/sys/rangelock.h @@ -50,6 +50,12 @@ struct rl_q_entry; struct rangelock { uintptr_t head; bool sleepers; + uint8_t resv1; + uint8_t resv2; + uint8_t resv3; +#if __SIZEOF_LONG__ >= 8 + uint32_t resv4; +#endif }; #ifdef _KERNEL