* [PATCH] s390/bitops: Return true/false (not 1/0) from bool functions
@ 2021-10-17 9:20 Huilong Deng
2021-10-18 10:42 ` Heiko Carstens
0 siblings, 1 reply; 2+ messages in thread
From: Huilong Deng @ 2021-10-17 9:20 UTC (permalink / raw)
To: hca, borntraeger
Cc: yury.norov, geert, linux-s390, linux-kernel, Huilong Deng
Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
---
arch/s390/include/asm/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/include/asm/bitops.h b/arch/s390/include/asm/bitops.h
index f7cefdde7c24..1d40630128a5 100644
--- 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);
}
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s390/bitops: Return true/false (not 1/0) from bool functions
2021-10-17 9:20 [PATCH] s390/bitops: Return true/false (not 1/0) from bool functions Huilong Deng
@ 2021-10-18 10:42 ` Heiko Carstens
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Carstens @ 2021-10-18 10:42 UTC (permalink / raw)
To: Huilong Deng; +Cc: borntraeger, yury.norov, geert, linux-s390, linux-kernel
On Sun, Oct 17, 2021 at 05:20:57PM +0800, Huilong Deng wrote:
> Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
> ---
> arch/s390/include/asm/bitops.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-18 10:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-17 9:20 [PATCH] s390/bitops: Return true/false (not 1/0) from bool functions Huilong Deng
2021-10-18 10:42 ` Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).