From 8875bb13e0669054cc57bb44ece5267fa8f8d2f3 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Mon, 27 Jun 2016 06:58:24 -0400 Subject: lib/igt_gt: Fix unused variable warning for non-x86 targets Moved variable declaration inside #if case to avoid unused variable warnings on non-x86 targets. Signed-off-by: Robert Foss Reviewed-by: Chris Wilson Signed-off-by: Marius Vlad --- lib/igt_gt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/igt_gt.c') diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 0d899a65..22cda157 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -375,9 +375,10 @@ int igt_open_forcewake_handle(void) return -1; return igt_debugfs_open("i915_forcewake_user", O_WRONLY); } -static unsigned int clflush_size; #if defined(__x86_64__) || defined(__i386__) +static unsigned int clflush_size; + int igt_setup_clflush(void) { FILE *file; -- cgit v1.2.3