linux/drivers/gpu/drm/meson
Neil Armstrong 08fbd8a5fb drm/meson: overlay: fix build failure
The recent GCC compiler is very picky with the VD_H_START() and
AFBC_DEC_PIXEL_BGN_H() macros, triggering a runtime assert error as:

In function 'meson_overlay_setup_scaler_params',
    inlined from 'meson_overlay_atomic_update' at
drivers/gpu/drm/meson/meson_overlay.c:542:2:
./include/linux/compiler.h:392:38: error: call to
'__compiletime_assert_341' declared with attribute error: FIELD_PREP:
value too large for the field

drivers/gpu/drm/meson/meson_overlay.c:413:4: note: in expansion of macro
'AFBC_DEC_PIXEL_BGN_H'
  413 |    AFBC_DEC_PIXEL_BGN_H(hd_start_lines - afbc_left) |
      |    ^~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:392:38: error: call to
'__compiletime_assert_401' declared with attribute error: FIELD_PREP:
value too large for the field

It's not expected to overflow these fields, but the compiler did
find a case where it overflows.
We can safely ignore this, so mask the value with the field width.

Fixes: e860785d57 ("drm/meson: overlay: setup overlay for Amlogic FBC")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[narmstrong: moved to (value) to avoid precedence issues]
Link: https://patchwork.freedesktop.org/patch/msgid/20200707135009.32474-1-narmstrong@baylibre.com
2020-07-07 15:53:44 +02:00
..
Kconfig
Makefile
meson_crtc.c drm/meson: crtc: handle commit of Amlogic FBC frames 2020-07-03 10:12:30 +02:00
meson_crtc.h
meson_drv.c drm-misc-next for v5.9: 2020-06-24 15:45:51 +10:00
meson_drv.h drm/meson: overlay: setup overlay for Amlogic FBC 2020-07-03 10:12:29 +02:00
meson_dw_hdmi.c Backmerge remote-tracking branch 'drm/drm-next' into drm-misc-next 2020-06-29 12:16:26 +02:00
meson_dw_hdmi.h
meson_osd_afbcd.c
meson_osd_afbcd.h
meson_overlay.c drm/meson: overlay: fix build failure 2020-07-07 15:53:44 +02:00
meson_overlay.h
meson_plane.c
meson_plane.h
meson_rdma.c
meson_rdma.h
meson_registers.h drm/meson: add Amlogic Video FBC registers 2020-07-03 10:12:28 +02:00
meson_vclk.c
meson_vclk.h
meson_venc_cvbs.c drm: Nuke mode->vrefresh 2020-05-27 14:31:42 +03:00
meson_venc_cvbs.h
meson_venc.c
meson_venc.h
meson_viu.c
meson_viu.h
meson_vpp.c
meson_vpp.h