mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	|  33a7776f9b 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:  | ||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| tidss_crtc.c | ||
| tidss_crtc.h | ||
| tidss_dispc.c | ||
| tidss_dispc.h | ||
| tidss_dispc_regs.h | ||
| tidss_drv.c | ||
| tidss_drv.h | ||
| tidss_encoder.c | ||
| tidss_encoder.h | ||
| tidss_irq.c | ||
| tidss_irq.h | ||
| tidss_kms.c | ||
| tidss_kms.h | ||
| tidss_oldi.c | ||
| tidss_oldi.h | ||
| tidss_plane.c | ||
| tidss_plane.h | ||
| tidss_scale_coefs.c | ||
| tidss_scale_coefs.h | ||