From 3144e68563b8fed346bef704e78bab2e40fa165b Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 26 Mar 2019 00:02:31 +0800 Subject: [PATCH 366/371] rt: fix compile error when -Werror=sign-compare X-NVConfidentiality: public Change-Id: I77f3b04362c849d334c56d4f6018e3d49a81b1fa --- 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..f457054 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 (unsigned)atomic_read(&sem->readers) != READER_BIAS; } static inline int rwsem_is_contended(struct rw_semaphore *sem) -- 2.7.4