linux-stable/drivers/gpu/drm/imx
Linus Torvalds 7aefd8b538 drm: imx: fix compiler warning with gcc-12
Gcc-12 correctly warned about this code using a non-NULL pointer as a
truth value:

  drivers/gpu/drm/imx/ipuv3-crtc.c: In function ‘ipu_crtc_disable_planes’:
  drivers/gpu/drm/imx/ipuv3-crtc.c:72:21: error: the comparison will always evaluate as ‘true’ for the address of ‘plane’ will never be NULL [-Werror=address]
     72 |                 if (&ipu_crtc->plane[1] && plane == &ipu_crtc->plane[1]->base)
        |                     ^

due to the extraneous '&' address-of operator.

Philipp Zabel points out that The mistake had no adverse effect since
the following condition doesn't actually dereference the NULL pointer,
but the intent of the code was obviously to check for it, not to take
the address of the member.

Fixes: eb8c88808c ("drm/imx: add deferred plane disabling")
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-06-09 09:39:44 -07:00
..
dcss Linux 5.17-rc6 2022-02-28 14:57:14 +10:00
dw_hdmi-imx.c drm/imx: dw_hdmi-imx: Fix bailout in error cases of probe 2022-04-04 09:37:42 +02:00
imx-drm-core.c drm/imx: Add support for the nomodeset kernel parameter 2022-01-27 19:15:49 +01:00
imx-drm.h drm/imx: Use simple encoder 2020-04-02 14:16:44 +02:00
imx-ldb.c drm-misc-next for 5.19: 2022-04-12 17:44:27 +10:00
imx-tve.c drm/imx: imx-tve: Make use of the helper function devm_platform_ioremap_resource() 2022-04-04 09:34:20 +02:00
ipuv3-crtc.c drm: imx: fix compiler warning with gcc-12 2022-06-09 09:39:44 -07:00
ipuv3-plane.c drm/imx: ipuv3-plane: Remove redundant color encoding and range initialisation 2022-04-04 09:34:21 +02:00
ipuv3-plane.h drm/imx: ipuv3-plane: use drm managed resources 2021-01-04 12:59:34 +01:00
Kconfig drm: Remove CONFIG_DRM_KMS_CMA_HELPER option 2021-11-30 11:10:03 +01:00
Makefile drm/imx: Add initial support for DCSS on iMX8MQ 2020-09-09 16:39:48 +02:00
parallel-display.c drm/imx: Fix memory leak in imx_pd_connector_get_modes 2022-04-04 09:37:42 +02:00