]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix fall-through warning in msm_gem_new_impl()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 13 Jul 2021 02:24:07 +0000 (21:24 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 13 Jul 2021 02:32:25 +0000 (21:32 -0500)
commit95c25aff607f2700377b6935ba0c9352adf65b4a
tree5eb3c08aa19602ae20b2557b2587c36225ca462c
parenta4c6012c69c281752372512f1469fac51aec9bcb
drm/msm: Fix fall-through warning in msm_gem_new_impl()

Fix the following fall-through warning:

drivers/gpu/drm/msm/msm_gem.c: In function 'msm_gem_new_impl':
drivers/gpu/drm/msm/msm_gem.c:1170:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1170 |   if (priv->has_cached_coherent)
      |      ^
drivers/gpu/drm/msm/msm_gem.c:1173:2: note: here
 1173 |  default:
      |  ^~~~~~~

by replacing the /* fallthrough */ comment with fallthrough;

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/gpu/drm/msm/msm_gem.c