projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b051e8
)
s390/bitops: return true/false (not 1/0) from bool functions
author
Huilong Deng
<denghuilong@cdjrlc.com>
Sun, 17 Oct 2021 09:20:57 +0000
(17:20 +0800)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Tue, 26 Oct 2021 13:21:29 +0000
(15:21 +0200)
Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
Link:
https://lore.kernel.org/r/20211017092057.24179-1-denghuilong@cdjrlc.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/bitops.h
patch
|
blob
|
history
diff --git
a/arch/s390/include/asm/bitops.h
b/arch/s390/include/asm/bitops.h
index fd149480b6e2b1e6490f5056d280f3d6d4216dff..5a530c552c2383ed370291b7322a962f75035e37 100644
(file)
--- a/
arch/s390/include/asm/bitops.h
+++ b/
arch/s390/include/asm/bitops.h
@@
-188,7
+188,7
@@
static inline bool arch_test_and_set_bit_lock(unsigned long nr,
volatile unsigned long *ptr)
{
if (arch_test_bit(nr, ptr))
- return
1
;
+ return
true
;
return arch_test_and_set_bit(nr, ptr);
}