Skip to contentSkip to conversation

tests/amdgpu: add missing config.h include

PATCH In review Emil Velikov 2 participants 2 messages Jan 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/amdgpu: add missing config.h include

From: Emil Velikov <[email protected]>

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 <[email protected]>
Cc Andrey Grodzovsky <[email protected]>
Fixes 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.")

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819

---
 tests/amdgpu/vm_tests.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/amdgpu/vm_tests.c +4 -0
index 4b0121ff..0379a79d 100644
@@ -21,6 +21,10 @@
  *
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "CUnit/Basic.h"
 
 #include "amdgpu_test.h"
Signature · 6 lines
2.16.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Emil Velikov

From: Emil Velikov <[email protected]>

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.

Quoted 7 lines

To reproduce, do a multilib build - 32bit build on 64bit machine.

Cc Fabio Pedretti <[email protected]>
Cc Andrey Grodzovsky <[email protected]>
Fixes 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.")

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819

And my apologies for being a bit too trigger-happy when blaming autotools :(

Quoted 22 lines
---
 tests/amdgpu/vm_tests.c | 4 ++++
 1 file changed, 4 insertions(+)
tests/amdgpu/vm_tests.c +4 -0
index 4b0121ff..0379a79d 100644
@@ -21,6 +21,10 @@
  *
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "CUnit/Basic.h"
 
 #include "amdgpu_test.h"
Signature · 1 line
2.16.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel