summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToni Lönnberg <[email protected]>2018-12-04 14:14:51 +0200
committerLionel Landwerlin <[email protected]>2018-12-04 12:47:49 +0000
commitd7b99ab94728980aa88de78b427d2eca7eb39a27 (patch)
treeca6207b8de9936b85e0bc7aab3c93ab4ba7f7a06
parentbacf8471dc7a7817735d3be0342c6fdb7880f3ca (diff)
intel/aubinator_error_decode: Get rid of warning for missing switch case
../src/intel/tools/aubinator_error_decode.c: In function ‘instdone_register_for_ring’: ../src/intel/tools/aubinator_error_decode.c:177:4: warning: enumeration value ‘I915_ENGINE_CLASS_INVALID’ not handled in switch [-Wswitch] switch (class) { ^~~~~~ Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r--src/intel/tools/aubinator_error_decode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index 49f0738e881..ea822d0161b 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -196,6 +196,9 @@ instdone_register_for_ring(const struct gen_device_info *devinfo,
case I915_ENGINE_CLASS_VIDEO_ENHANCE:
return "VECS_INSTDONE";
+
+ default:
+ return NULL;
}
return NULL;