diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-07-12 21:24:07 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-07-12 21:32:25 -0500 |
commit | e181ad43887c6b6b5995e9b191666f04242d77eb (patch) | |
tree | 5eb3c08aa19602ae20b2557b2587c36225ca462c /drivers/gpu | |
parent | 1eb5f4a3ddd949af1abe947c02ad990c013dd620 (diff) | |
download | linux-e181ad43887c6b6b5995e9b191666f04242d77eb.tar.gz linux-e181ad43887c6b6b5995e9b191666f04242d77eb.tar.bz2 linux-e181ad43887c6b6b5995e9b191666f04242d77eb.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c index 141178754231..1e8a971a86f2 100644 --- a/drivers/gpu/drm/msm/msm_gem.c +++ b/drivers/gpu/drm/msm/msm_gem.c @@ -1169,7 +1169,7 @@ static int msm_gem_new_impl(struct drm_device *dev, case MSM_BO_CACHED_COHERENT: if (priv->has_cached_coherent) break; - /* fallthrough */ + fallthrough; default: DRM_DEV_ERROR(dev->dev, "invalid cache flag: %x\n", (flags & MSM_BO_CACHE_MASK)); |