linux_dsm_epyc7002/drivers/gpu/drm/meson
Arnd Bergmann 50b81d77be drm: meson: fix address type confusion
Casting a pointer to dma_addr_t produces a warning:

drivers/gpu/drm/meson/meson_rdma.c: In function 'meson_rdma_free':
drivers/gpu/drm/meson/meson_rdma.c:59:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  priv->rdma.addr_phys = (dma_addr_t)NULL;

In this case, it's worse because the variable name has the suffix
'_phys', which often indicates a phys_addr_t rather than dma_addr_t,
i.e. yet another incompatible type.

Change it to use consistent naming and avoid NULL.

Fixes: 63fba242c4 ("drm/meson: add RDMA module driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107214653.1173199-1-arnd@arndb.de
2020-01-08 13:51:56 +01:00
..
Kconfig
Makefile
meson_crtc.c
meson_crtc.h
meson_drv.c
meson_drv.h
meson_dw_hdmi.c
meson_dw_hdmi.h
meson_osd_afbcd.c
meson_osd_afbcd.h
meson_overlay.c
meson_overlay.h
meson_plane.c
meson_plane.h
meson_rdma.c
meson_rdma.h
meson_registers.h
meson_vclk.c
meson_vclk.h
meson_venc_cvbs.c
meson_venc_cvbs.h
meson_venc.c
meson_venc.h
meson_viu.c
meson_viu.h
meson_vpp.c
meson_vpp.h