Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2013 20:51:12 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255042 - head/sys/dev/drm2
Message-ID:  <201308292051.r7TKpCC6089021@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308292051.r7TKpCC6089021>