Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2018-12-16 02:56:34 +0100
committerBorislav Petkov <bp@suse.de>2018-12-16 02:56:34 +0100
commit05cb1d44504d537a4bba75b29f9b115b6d0cffa0 (patch)
tree82294a72b60dbb807ef9573748764289f9287bb6
parentd96d8778d06a5567a5fa7800444af66e29fa0228 (diff)
Refresh
patches.arch/locking-atomics-asm-generic-move-some-macros-from-linux-bitops-h-to-a-new-linux-bits-h-file.patch. suse-commit: 35b3a9fc2e5ef5015f3c8dd24ed18cfc5a49c933
-rw-r--r--include/linux/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bits.h b/include/linux/bits.h
index 2b7b532c1d51..1abf5eba7c15 100644
--- a/include/linux/bits.h
+++ b/include/linux/bits.h
@@ -17,7 +17,7 @@
* GENMASK_ULL(39, 21) gives us the 64bit vector 0x000000ffffe00000.
*/
#define GENMASK(h, l) \
- (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
+ (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
#define GENMASK_ULL(h, l) \
(((~0ULL) - (1ULL << (l)) + 1) & \