From 90bcbe2c0a2f7896cc1537201e804897337cdeb5 Mon Sep 17 00:00:00 2001 From: Mikko Perttunen Date: Fri, 19 May 2017 10:48:54 +0300 Subject: [PATCH 348/352] rwsem_rt: fix compilation error on -Werror Comparison between signed and unsigned variables causes compilation error on some compilers when -Werror is enabled. Bug 1905220 Signed-off-by: Mikko Perttunen --- include/linux/rwsem_rt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rwsem_rt.h b/include/linux/rwsem_rt.h index 2ffbf09..2aa90f3 100644 --- a/include/linux/rwsem_rt.h +++ b/include/linux/rwsem_rt.h @@ -47,7 +47,7 @@ do { \ static inline int rwsem_is_locked(struct rw_semaphore *sem) { - return atomic_read(&sem->readers) != READER_BIAS; + return atomic_read(&sem->readers) != (int)READER_BIAS; } static inline int rwsem_is_contended(struct rw_semaphore *sem) -- 2.7.4