[PATCH libdrm] tests/amdgpu: add missing config.h include

Emil Velikov emil.l.velikov at gmail.com
Mon Jan 29 14:56:04 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

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 at gmail.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky at 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 at collabora.com>
---
 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 4b0121ff..0379a79d 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"
-- 
2.16.0



More information about the dri-devel mailing list