The branch main has been updated by dumbbell:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6c0bcd15e4782ff2e23119a37396d693d09c695d

commit 6c0bcd15e4782ff2e23119a37396d693d09c695d
Author:     Jean-Sébastien Pédron <[email protected]>
AuthorDate: 2026-01-07 21:18:38 +0000
Commit:     Jean-Sébastien Pédron <[email protected]>
CommitDate: 2026-01-07 22:39:04 +0000

    linuxkpi: Add `rol32()`
    
    `rol64()` and `rol32()` are used by <linux/siphash.h>. The former was
    added previously, before <linux/siphash.h> was added. However the latter
    was not, and it broke the build on armv7.
    
    Reported by:    adrian
    Reviewed by:    adrian, rpokala
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D54588
---
 sys/compat/linuxkpi/common/include/linux/bitops.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h 
b/sys/compat/linuxkpi/common/include/linux/bitops.h
index 969b5e8245e7..ebe9aa120094 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -443,4 +443,10 @@ rol64(uint64_t word, unsigned int shift)
        return ((word << (shift & 63)) | (word >> ((-shift) & 63)));
 }
 
+static inline uint32_t
+rol32(uint32_t word, unsigned int shift)
+{
+       return ((word << (shift & 31)) | (word >> ((-shift) & 31)));
+}
+
 #endif /* _LINUXKPI_LINUX_BITOPS_H_ */

Reply via email to