svn commit: r255042 - head/sys/dev/drm2
Jung-uk Kim
jkim at FreeBSD.org
Thu Aug 29 20:51:13 UTC 2013
Author: jkim
Date: Thu Aug 29 20:51:12 2013
New Revision: 255042
URL: http://svnweb.freebsd.org/changeset/base/255042
Log:
Fix the incomplete conversion from atomic_t to long for test_bit().
Modified:
head/sys/dev/drm2/drm_atomic.h
Modified: head/sys/dev/drm2/drm_atomic.h
==============================================================================
--- head/sys/dev/drm2/drm_atomic.h Thu Aug 29 20:40:45 2013 (r255041)
+++ head/sys/dev/drm2/drm_atomic.h Thu Aug 29 20:51:12 2013 (r255042)
@@ -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)
More information about the svn-src-all
mailing list