aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/asm-generic/bitops/fls64.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-11-03 13:35:06 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2025-11-03 13:35:06 -0300
commit549042f16716b4c72bfa9813d9e38f352c539dad (patch)
tree717328365baa64b58a85d13f6da048d22d6ac46d /tools/include/asm-generic/bitops/fls64.h
parenttools headers UAPI: Sync KVM's vmx.h header with the kernel sources to handle... (diff)
downloadlinux-549042f16716b4c72bfa9813d9e38f352c539dad.tar.gz
linux-549042f16716b4c72bfa9813d9e38f352c539dad.zip
tools headers asm: Sync fls headers header with the kernel sources
To pick the changes in: 6606c8c7e8188656 ("bitops: Add __attribute_const__ to generic ffs()-family implementations") This addresses these tools build warnings: Warning: Kernel ABI header differences: diff -u tools/include/asm-generic/bitops/__fls.h include/asm-generic/bitops/__fls.h diff -u tools/include/asm-generic/bitops/fls.h include/asm-generic/bitops/fls.h diff -u tools/include/asm-generic/bitops/fls64.h include/asm-generic/bitops/fls64.h Please see tools/include/uapi/README for further details. Cc: Kees Cook <kees@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/include/asm-generic/bitops/fls64.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/asm-generic/bitops/fls64.h b/tools/include/asm-generic/bitops/fls64.h
index 866f2b2304ff..b5f58dd261a3 100644
--- a/tools/include/asm-generic/bitops/fls64.h
+++ b/tools/include/asm-generic/bitops/fls64.h
@@ -16,7 +16,7 @@
* at position 64.
*/
#if BITS_PER_LONG == 32
-static __always_inline int fls64(__u64 x)
+static __always_inline __attribute_const__ int fls64(__u64 x)
{
__u32 h = x >> 32;
if (h)
@@ -24,7 +24,7 @@ static __always_inline int fls64(__u64 x)
return fls(x);
}
#elif BITS_PER_LONG == 64
-static __always_inline int fls64(__u64 x)
+static __always_inline __attribute_const__ int fls64(__u64 x)
{
if (x == 0)
return 0;