This patch fixes: -Wunused-function Signed-off-by: Luben Tuikov <luben.tuikov@xxxxxxx> --- tests/amdgpu/ras_tests.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/amdgpu/ras_tests.c b/tests/amdgpu/ras_tests.c index d714be73..4c395382 100644 --- a/tests/amdgpu/ras_tests.c +++ b/tests/amdgpu/ras_tests.c @@ -709,6 +709,7 @@ static void amdgpu_ras_disable_test(void) } } +#ifdef AMDGPU_RAS_TEST static void amdgpu_ras_enable_test(void) { int i; @@ -717,6 +718,7 @@ static void amdgpu_ras_enable_test(void) amdgpu_ras_features_test(1); } } +#endif static void __amdgpu_ras_ip_inject_test(const struct ras_inject_test_config *ip_test, uint32_t size) @@ -881,7 +883,7 @@ CU_TestInfo ras_tests[] = { { "ras query test", amdgpu_ras_query_test }, { "ras inject test", amdgpu_ras_inject_test }, { "ras disable test", amdgpu_ras_disable_test }, -#if 0 +#ifdef AMDGPU_RAS_TEST { "ras enable test", amdgpu_ras_enable_test }, #endif CU_TEST_INFO_NULL, -- 2.24.0.155.gd9f6f3b619 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx