From 92fc14321fd87483f787e0c4854cd6f9ea0625ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Fri, 31 May 2019 14:35:06 +0200 Subject: [PATCH] etnaviv: drm: Use mesa's ARRAY_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther Reviewed-by: Christian Gmeiner --- src/etnaviv/drm/etnaviv_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etnaviv/drm/etnaviv_priv.h b/src/etnaviv/drm/etnaviv_priv.h index d13cfe73686..027471bfd3d 100644 --- a/src/etnaviv/drm/etnaviv_priv.h +++ b/src/etnaviv/drm/etnaviv_priv.h @@ -41,6 +41,7 @@ #include #include "util/list.h" +#include "util/macros.h" #include "util/u_atomic.h" #include "etnaviv_drmif.h" @@ -176,7 +177,6 @@ struct etna_perfmon_signal }; #define ALIGN(v,a) (((v) + (a) - 1) & ~((a) - 1)) -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #define enable_debug 1 /* TODO make dynamic */ -- 2.30.2