Skip to content

Commit 2dbae28

Browse files
committed
Merge tag 'bitmap-for-6.16-rc6' of https://github.com/norov/linux
Pull bitops UAPI fix from Yury Norov: "Fix BITS_PER_LONG merge error Tomas' fix for __BITS_PER_LONG was effectively reverted by a wrong merge. Fix it and add the related files to MAINTAINERS" * tag 'bitmap-for-6.16-rc6' of https://github.com/norov/linux: MAINTAINERS: bitmap: add UAPI headers uapi: bitops: use UAPI-safe variant of BITS_PER_LONG again (2)
2 parents a3b5b88 + 1afc85d commit 2dbae28

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4181,6 +4181,7 @@ F: include/linux/cpumask_types.h
41814181
F: include/linux/find.h
41824182
F: include/linux/nodemask.h
41834183
F: include/linux/nodemask_types.h
4184+
F: include/uapi/linux/bits.h
41844185
F: include/vdso/bits.h
41854186
F: lib/bitmap-str.c
41864187
F: lib/bitmap.c
@@ -4193,6 +4194,7 @@ F: tools/include/linux/bitfield.h
41934194
F: tools/include/linux/bitmap.h
41944195
F: tools/include/linux/bits.h
41954196
F: tools/include/linux/find.h
4197+
F: tools/include/uapi/linux/bits.h
41964198
F: tools/include/vdso/bits.h
41974199
F: tools/lib/bitmap.c
41984200
F: tools/lib/find_bit.c

include/uapi/linux/bits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#ifndef _UAPI_LINUX_BITS_H
55
#define _UAPI_LINUX_BITS_H
66

7-
#define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (BITS_PER_LONG - 1 - (h))))
7+
#define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))
88

9-
#define __GENMASK_ULL(h, l) (((~_ULL(0)) << (l)) & (~_ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h))))
9+
#define __GENMASK_ULL(h, l) (((~_ULL(0)) << (l)) & (~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h))))
1010

1111
#define __GENMASK_U128(h, l) \
1212
((_BIT128((h)) << 1) - (_BIT128(l)))

tools/include/uapi/linux/bits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#ifndef _UAPI_LINUX_BITS_H
55
#define _UAPI_LINUX_BITS_H
66

7-
#define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (BITS_PER_LONG - 1 - (h))))
7+
#define __GENMASK(h, l) (((~_UL(0)) << (l)) & (~_UL(0) >> (__BITS_PER_LONG - 1 - (h))))
88

9-
#define __GENMASK_ULL(h, l) (((~_ULL(0)) << (l)) & (~_ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h))))
9+
#define __GENMASK_ULL(h, l) (((~_ULL(0)) << (l)) & (~_ULL(0) >> (__BITS_PER_LONG_LONG - 1 - (h))))
1010

1111
#define __GENMASK_U128(h, l) \
1212
((_BIT128((h)) << 1) - (_BIT128(l)))

0 commit comments

Comments
 (0)