From b541d21a0a908bf98d44375720f4430297720743 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 7 Nov 2018 17:23:55 +0000 Subject: [PATCH] freedreno: remove always-defined #ifdef While at it, let's include xf86atomic.h explicitly, instead of relying on some other file accidentally including it before including this file. Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- freedreno/freedreno_ringbuffer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freedreno/freedreno_ringbuffer.h b/freedreno/freedreno_ringbuffer.h index bc41a31c..1a1e8425 100644 --- a/freedreno/freedreno_ringbuffer.h +++ b/freedreno/freedreno_ringbuffer.h @@ -29,6 +29,7 @@ #ifndef FREEDRENO_RINGBUFFER_H_ #define FREEDRENO_RINGBUFFER_H_ +#include #include /* the ringbuffer object is not opaque so that OUT_RING() type stuff @@ -83,9 +84,7 @@ struct fd_ringbuffer { * be inlined for performance reasons. */ union { -#ifdef HAS_ATOMIC_OPS atomic_t refcnt; -#endif uint64_t __pad; }; };