From 5fe5bcbff42dd16d0838c2b23b452c9faeefcbda Mon Sep 17 00:00:00 2001 From: jkim Date: Thu, 29 Aug 2013 20:51:12 +0000 Subject: Fix the incomplete conversion from atomic_t to long for test_bit(). --- sys/dev/drm2/drm_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm2/drm_atomic.h b/sys/dev/drm2/drm_atomic.h index e52d349..eb86373 100644 --- a/sys/dev/drm2/drm_atomic.h +++ b/sys/dev/drm2/drm_atomic.h @@ -69,7 +69,7 @@ typedef uint64_t atomic64_t; #define set_bit(b, p) \ atomic_set_long(__bit_addr(p, b), __bit_mask(b)) #define test_bit(b, p) \ - ((atomic_read(__bit_addr(p, b)) & __bit_mask(b)) != 0) + ((*__bit_addr(p, b) & __bit_mask(b)) != 0) static __inline u_long find_first_zero_bit(const u_long *p, u_long max) -- cgit v1.1