Hi Tomi,
kernel test robot noticed the following build errors:
[auto build test ERROR on 11439c4635edd669ae435eec308f4ab8a0804808]
url: https://github.com/intel-lab-lkp/linux/commits/Tomi-Valkeinen/drm-bridge-tc358762-Clean-up-register-defines/20260328-164947
base: 11439c4635edd669ae435eec308f4ab8a0804808
patch link: https://lore.kernel.org/r/20260327-tc358762-fixes-v2-2-3589d3c45f4a%40ideasonboard.com
patch subject: [PATCH v2 02/12] drm/bridge: tc358762: Improce SYSCTRL register defines
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260331/202603311306.2ez4eHxU-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/202603311306.2ez4eHxU-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603311306.2ez4eHxU-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/tc358762.c: In function 'tc358762_init':
>> drivers/gpu/drm/bridge/tc358762.c:154:24: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
154 | FIELD_PREP(SYSCTRL_DPIDATA_IO_MASK, SYSCTRL_DPIDATA_IO_4MA) |
| ^~~~~~~~~~
vim +/FIELD_PREP +154 drivers/gpu/drm/bridge/tc358762.c
127
128 static int tc358762_init(struct tc358762 *ctx)
129 {
130 u32 lcdctrl;
131
132 tc358762_write(ctx, DSI_LANEENABLE,
133 DSI_LANEENABLE_L0EN | DSI_LANEENABLE_CLEN);
134 tc358762_write(ctx, PPI_D0S_CLRSIPOCOUNT, 5);
135 tc358762_write(ctx, PPI_D1S_CLRSIPOCOUNT, 5);
136 tc358762_write(ctx, PPI_D0S_ATMR, 0);
137 tc358762_write(ctx, PPI_D1S_ATMR, 0);
138 tc358762_write(ctx, PPI_LPTXTIMECNT, LPX_PERIOD);
139
140 tc358762_write(ctx, SPICMR, 0x00);
141
142 lcdctrl = LCDCTRL_VSDELAY(1) | LCDCTRL_RGB888 |
143 LCDCTRL_UNK6 | LCDCTRL_VTGEN;
144
145 if (ctx->mode.flags & DRM_MODE_FLAG_NHSYNC)
146 lcdctrl |= LCDCTRL_HSPOL;
147
148 if (ctx->mode.flags & DRM_MODE_FLAG_NVSYNC)
149 lcdctrl |= LCDCTRL_VSPOL;
150
151 tc358762_write(ctx, LCDCTRL, lcdctrl);
152
153 tc358762_write(ctx, SYSCTRL,
> 154 FIELD_PREP(SYSCTRL_DPIDATA_IO_MASK, SYSCTRL_DPIDATA_IO_4MA) |
155 FIELD_PREP(SYSCTRL_DPISTB_IO_MASK, SYSCTRL_DPISTB_IO_4MA) |
156 FIELD_PREP(SYSCTRL_PCLKDIV_MASK, SYSCTRL_PCLKDIV_DIV_3));
157
158 msleep(100);
159
160 tc358762_write(ctx, PPI_STARTPPI, PPI_STARTPPI_STARTPPI);
161 tc358762_write(ctx, DSI_STARTDSI, DSI_STARTDSI_STARTDSI);
162
163 msleep(100);
164
165 return tc358762_clear_error(ctx);
166 }
167
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki