diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-22 20:27:54 +0300 |
---|---|---|
committer | Zhi Wang <zhi.a.wang@intel.com> | 2018-04-23 08:09:36 +0300 |
commit | 3eda0d22ead04f81ea59c9584bcbf5b496745e92 (patch) | |
tree | 8c3380933dba59c6c55f7fbad0f83646d62021a8 /drivers/gpu/drm/i915/gvt | |
parent | 41e7ccc19c2a52b13b77f2a489a466b140d2d235 (diff) | |
download | linux-3eda0d22ead04f81ea59c9584bcbf5b496745e92.tar.xz |
drm/i915/gvt: Mark expected switch fall-through in handle_g2v_notification
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1466154 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/handlers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c index 8c5d5d005854..a33c1c3e4a21 100644 --- a/drivers/gpu/drm/i915/gvt/handlers.c +++ b/drivers/gpu/drm/i915/gvt/handlers.c @@ -1150,6 +1150,7 @@ static int handle_g2v_notification(struct intel_vgpu *vgpu, int notification) switch (notification) { case VGT_G2V_PPGTT_L3_PAGE_TABLE_CREATE: root_entry_type = GTT_TYPE_PPGTT_ROOT_L3_ENTRY; + /* fall through */ case VGT_G2V_PPGTT_L4_PAGE_TABLE_CREATE: mm = intel_vgpu_get_ppgtt_mm(vgpu, root_entry_type, pdps); return PTR_ERR_OR_ZERO(mm); |