From 10e85a8b7f28e80f5184919b2448ade18c19ca21 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 29 Jan 2018 14:51:31 +0000 Subject: [PATCH] tests/amdgpu: add missing config.h include Otherwise we'll end up without the macros set during configure stage. And effectively error out in sanity tests such as the mmap static assert. To reproduce, do a multilib build - 32bit build on 64bit machine. Cc: Fabio Pedretti Cc: Andrey Grodzovsky Fixes: 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819 Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- tests/amdgpu/vm_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c index 7b6dc5d6..502a9405 100644 --- a/tests/amdgpu/vm_tests.c +++ b/tests/amdgpu/vm_tests.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "CUnit/Basic.h" #include "amdgpu_test.h"