linux/drivers/gpu/drm/tidss
Nathan Chancellor 33a7776f9b drm/tidss: dispc: Explicitly include bitfield.h
After a recent series to use FIELD_PREP and FIELD_MODIFY in
tidss_dispc.c, there are many errors when bitfield.h is not implicitly
included, such as when building allmodconfig for ARCH=hexagon:

  drivers/gpu/drm/tidss/tidss_dispc.c:1116:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   1116 |         VP_REG_FLD_MOD(dispc, hw_videoport, DISPC_VP_CONTROL, v,
        |         ^
  drivers/gpu/drm/tidss/tidss_dispc.c:631:3: note: expanded from macro 'VP_REG_FLD_MOD'
    631 |                 FIELD_MODIFY((mask), &_reg, (val));                     \
        |                 ^
  drivers/gpu/drm/tidss/tidss_dispc.c:1140:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   1140 |         FIELD_MODIFY(DISPC_VP_DSS_OLDI_CFG_MAP_MASK, &oldi_cfg,
        |         ^
  drivers/gpu/drm/tidss/tidss_dispc.c:1203:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   1203 |                        FIELD_PREP(DISPC_VP_TIMING_H_SYNC_PULSE_MASK, hsw - 1) |
        |                        ^
  ...

Explicitly include bitfield.h to resolve the errors.

Fixes: 9accc8b10d ("drm/tidss: dispc: Get rid of FLD_VAL")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250902-drm-tidss-fix-missing-bitfield-h-v1-1-aaad4a285f98@kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
2025-09-03 12:16:04 +03:00
..
Kconfig
Makefile drm/tidss: Add OLDI bridge support 2025-06-26 12:37:24 +03:00
tidss_crtc.c drm/tidss: Set crtc modesetting parameters with adjusted mode 2025-08-13 10:56:06 +03:00
tidss_crtc.h
tidss_dispc.c drm/tidss: dispc: Explicitly include bitfield.h 2025-09-03 12:16:04 +03:00
tidss_dispc.h drm/tidss: Fix missing includes and struct decls 2025-08-13 10:20:37 +03:00
tidss_dispc_regs.h drm/tidss: dispc: Define field masks being used 2025-09-01 10:37:20 +03:00
tidss_drv.c drm/tidss: Remove early fb 2025-08-13 11:11:02 +03:00
tidss_drv.h drm/tidss: Fix missing includes and struct decls 2025-08-13 10:20:37 +03:00
tidss_encoder.c drm/tidss: encoder: convert to devm_drm_bridge_alloc() 2025-07-18 14:55:48 +03:00
tidss_encoder.h
tidss_irq.c drm/tidss: Rename 'wait_lock' to 'irq_lock' 2024-11-25 13:10:23 +02:00
tidss_irq.h drm/tidss: Remove unused OCP error flag 2024-11-25 13:10:20 +02:00
tidss_kms.c drm/tidss: Mark AM65x OLDI code separately 2025-06-26 12:37:20 +03:00
tidss_kms.h
tidss_oldi.c drm/tidss: remove redundant assignment to variable ret 2025-08-13 11:07:11 +03:00
tidss_oldi.h drm/tidss: Add OLDI bridge support 2025-06-26 12:37:24 +03:00
tidss_plane.c drm/tidss: Update infrastructure to support K3 DSS cut-down versions 2025-05-20 14:43:56 +03:00
tidss_plane.h drm/tidss: Fix missing includes and struct decls 2025-08-13 10:20:37 +03:00
tidss_scale_coefs.c
tidss_scale_coefs.h drm/tidss: Fix missing includes and struct decls 2025-08-13 10:20:37 +03:00