diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2019-07-30 17:30:56 +0200 |
---|---|---|
committer | Liviu Dudau <Liviu.Dudau@arm.com> | 2019-08-02 17:26:00 +0100 |
commit | 28ba1b1da49a20ba8fb767d6ddd7c521ec79a119 (patch) | |
tree | 1da3dd4e767d74dcc3b684dde222a74f865622c1 /drivers/gpu/drm/drm_debugfs_crc.c | |
parent | 57d8396504b3a93f284e51b866740a3e7419a3d9 (diff) | |
download | lwn-28ba1b1da49a20ba8fb767d6ddd7c521ec79a119.tar.gz lwn-28ba1b1da49a20ba8fb767d6ddd7c521ec79a119.zip |
drm: mali-dp: Mark expected switch fall-through
Now that -Wimplicit-fallthrough is passed to GCC by default, the
following warnings shows up:
../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_format_get_bpp’:
../drivers/gpu/drm/arm/malidp_hw.c:387:8: warning: this statement may fall
through [-Wimplicit-fallthrough=]
bpp = 30;
~~~~^~~~
../drivers/gpu/drm/arm/malidp_hw.c:388:3: note: here
case DRM_FORMAT_YUV420_10BIT:
^~~~
../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_se_irq’:
../drivers/gpu/drm/arm/malidp_hw.c:1311:4: warning: this statement may fall
through [-Wimplicit-fallthrough=]
drm_writeback_signal_completion(&malidp->mw_connector, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/arm/malidp_hw.c:1313:3: note: here
case MW_START:
^~~~
Rework to add a 'break;' in a case that didn't have it so that
the compiler doesn't warn about fall-through.
Cc: stable@vger.kernel.org # v5.2+
Fixes: b8207562abdd ("drm/arm/malidp: Specified the rotation memory requirements for AFBC YUV formats")
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190730153056.3606-1-anders.roxell@linaro.org
Diffstat (limited to 'drivers/gpu/drm/drm_debugfs_crc.c')
0 files changed, 0 insertions, 0 deletions