OSDN Git Service

tests/amdgpu: add missing config.h include
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 29 Jan 2018 14:51:31 +0000 (14:51 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 31 Jan 2018 15:57:58 +0000 (15:57 +0000)
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 <pedretti.fabio@gmail.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
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 <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
tests/amdgpu/vm_tests.c

index 7b6dc5d..502a940 100644 (file)
  *
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "CUnit/Basic.h"
 
 #include "amdgpu_test.h"