git: 9894111e3479 - stable/13 - LinuxKPI: add __ffs64()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 20 Feb 2022 18:15:35 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=9894111e34797c3b17ad0d7ccef4ef368fa3605a

commit 9894111e34797c3b17ad0d7ccef4ef368fa3605a
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-02-09 11:43:33 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-02-20 16:24:17 +0000

    LinuxKPI: add __ffs64()
    
    Add __ffs64() to linux/bitops.h needed by a driver.
    
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D34225
    
    (cherry picked from commit d17b78aa142d7c63490c7a2c3f202ef99fffad70)
---
 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 262e6b9b110f..b6c54b2e6858 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -86,6 +86,12 @@ __ffsl(long mask)
 	return (ffsl(mask) - 1);
 }
 
+static inline unsigned long
+__ffs64(uint64_t mask)
+{
+	return (ffsll(mask) - 1);
+}
+
 static inline int
 __flsl(long mask)
 {