aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeung-Woo Kim2017-03-30 22:30:57 -0500
committerEmil Velikov2017-04-03 11:46:06 -0500
commita398adba7c845fe248ab1e5c338789ca2882644b (patch)
tree576a8f8c04fbb67b78553c8f78eb9c5b15f1f9f9 /tests/exynos/exynos_fimg2d_test.c
parent762be6c2102de0ec99659838a1423c4a131432ff (diff)
downloadexternal-libgbm-a398adba7c845fe248ab1e5c338789ca2882644b.tar.gz
external-libgbm-a398adba7c845fe248ab1e5c338789ca2882644b.tar.xz
external-libgbm-a398adba7c845fe248ab1e5c338789ca2882644b.zip
tests/exynos: remove unused-function build warning
The function g2d_blend_test() is blocked to call because of feature unsafety. This patch blocks with proper feature name and also blocks the function itself to remove build warning. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'tests/exynos/exynos_fimg2d_test.c')
-rw-r--r--tests/exynos/exynos_fimg2d_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index 797fb6eb..3495c626 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -523,6 +523,7 @@ fail:
523 return 0; 523 return 0;
524} 524}
525 525
526#if EXYNOS_G2D_USERPTR_TEST
526static int g2d_blend_test(struct exynos_device *dev, 527static int g2d_blend_test(struct exynos_device *dev,
527 struct exynos_bo *src, 528 struct exynos_bo *src,
528 struct exynos_bo *dst, 529 struct exynos_bo *dst,
@@ -621,6 +622,7 @@ fail:
621 622
622 return 0; 623 return 0;
623} 624}
625#endif
624 626
625static int g2d_checkerboard_test(struct exynos_device *dev, 627static int g2d_checkerboard_test(struct exynos_device *dev,
626 struct exynos_bo *src, 628 struct exynos_bo *src,
@@ -864,7 +866,7 @@ int main(int argc, char **argv)
864 * 866 *
865 * Disable the test for now, until the kernel code has been sanitized. 867 * Disable the test for now, until the kernel code has been sanitized.
866 */ 868 */
867#if 0 869#if EXYNOS_G2D_USERPTR_TEST
868 ret = g2d_blend_test(dev, src, bo, G2D_IMGBUF_USERPTR); 870 ret = g2d_blend_test(dev, src, bo, G2D_IMGBUF_USERPTR);
869 if (ret < 0) 871 if (ret < 0)
870 fprintf(stderr, "failed to test blend operation.\n"); 872 fprintf(stderr, "failed to test blend operation.\n");