diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-11-03 13:35:06 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-11-03 13:35:06 -0300 |
| commit | 549042f16716b4c72bfa9813d9e38f352c539dad (patch) | |
| tree | 717328365baa64b58a85d13f6da048d22d6ac46d /tools/include/asm-generic/bitops/fls64.h | |
| parent | tools headers UAPI: Sync KVM's vmx.h header with the kernel sources to handle... (diff) | |
| download | linux-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.h | 4 |
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; |
