tests/amdgpu: add missing config.h include
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.
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
@@ -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
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
Signed-off-by Emil Velikov <[email protected]>
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@@ -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