drm: Branch 'master'
[email protected] (GitLab Mirror) Sat, 7 Dec 2019 14:22:38 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
xf86atomic.h | 1 + 1 file changed, 1 insertion(+) New commits: commit 8c511950395ce496028bbc5ba30d9b9632690db6 Author: Thomas Petazzoni <[email protected]> Date: Thu May 26 10:46:57 2016 +0200 xf86atomic: require CAS support in libatomic_ops Since AO_compare_and_swap_full() is used by libdrm, AO_REQUIRE_CAS must be defined before including <atomic_ops.h> so that we are sure that CAS support will be provided. This is necessary to make sure that the AO_compare_and_swap_full() function will be provided on all architectures, including the ones that don't have built-in CAS support such as SPARCv8. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Peter Seiderer <[email protected]> Acked-by: Eric Engestrom <[email protected]> diff --git a/xf86atomic.h b/xf86atomic.h index 2d733bd5..efa47a77 100644 --- a/xf86atomic.h +++ b/xf86atomic.h @@ -54,6 +54,7 @@ typedef struct { #endif #if HAVE_LIB_ATOMIC_OPS +#define AO_REQUIRE_CAS #include <atomic_ops.h> #define HAS_ATOMIC_OPS 1 --