diff options
author | 2025-06-06 10:23:57 +0200 | |
---|---|---|
committer | 2025-06-06 10:19:04 -0400 | |
commit | 11fcf368506d347088e613edf6cd2604d70c454f (patch) | |
tree | 4673ced6675022155a0652dfab3a696bd70a8ff2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'sched_ext-for-6.16-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext (diff) | |
download | wireguard-linux-11fcf368506d347088e613edf6cd2604d70c454f.tar.xz wireguard-linux-11fcf368506d347088e613edf6cd2604d70c454f.zip |
uapi: bitops: use UAPI-safe variant of BITS_PER_LONG again
Commit 1e7933a575ed ("uapi: Revert "bitops: avoid integer overflow in GENMASK(_ULL)"")
did not take in account that the usage of BITS_PER_LONG in __GENMASK() was
changed to __BITS_PER_LONG for UAPI-safety in
commit 3c7a8e190bc5 ("uapi: introduce uapi-friendly macros for GENMASK").
BITS_PER_LONG can not be used in UAPI headers as it derives from the kernel
configuration and not from the current compiler invocation.
When building compat userspace code or a compat vDSO its value will be
incorrect.
Switch back to __BITS_PER_LONG.
Fixes: 1e7933a575ed ("uapi: Revert "bitops: avoid integer overflow in GENMASK(_ULL)"")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions