Hi Heiko, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.12 next-20241128] [cannot apply to rockchip/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Heiko-Stuebner/drm-bridge-synopsys-Add-MIPI-DSI2-host-controller-bridge/20241128-103709 base: linus/master patch link: https://lore.kernel.org/r/20241126201213.522753-4-heiko%40sntech.de patch subject: [PATCH v2 3/3] drm/rockchip: Add MIPI DSI2 glue driver for RK3588 config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20241128/202411281937.QyowC5lv-lkp@xxxxxxxxx/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241128/202411281937.QyowC5lv-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202411281937.QyowC5lv-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:20: In file included from include/drm/bridge/dw_mipi_dsi2.h:15: In file included from include/drm/drm_atomic.h:31: In file included from include/drm/drm_crtc.h:32: In file included from include/drm/drm_modes.h:33: In file included from include/drm/drm_connector.h:32: In file included from include/drm/drm_util.h:36: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2223: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:315:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 315 | val |= PHY_LPTX_CLK_DIV(esc_clk_div); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:72:30: note: expanded from macro 'PHY_LPTX_CLK_DIV' 72 | #define PHY_LPTX_CLK_DIV(x) FIELD_PREP(GENMASK(12, 8), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:340:6: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | PHY_IPI_RATIO(tmp)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:88:27: note: expanded from macro 'PHY_IPI_RATIO' 88 | #define PHY_IPI_RATIO(x) FIELD_PREP(GENMASK(21, 0), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:361:53: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 361 | regmap_write(dsi2->regmap, DSI2_PHY_LP2HS_MAN_CFG, PHY_LP2HS_TIME(timing.data_lp2hs)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:77:28: note: expanded from macro 'PHY_LP2HS_TIME' 77 | #define PHY_LP2HS_TIME(x) FIELD_PREP(GENMASK(28, 0), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:375:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | val |= PPI_WIDTH(PPI_WIDTH_8_BITS); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:68:24: note: expanded from macro 'PPI_WIDTH' 68 | #define PPI_WIDTH(x) FIELD_PREP(GENMASK(9, 8), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:388:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 388 | val |= PHY_LANES(dsi2->lanes); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:69:24: note: expanded from macro 'PHY_LANES' 69 | #define PHY_LANES(x) FIELD_PREP(GENMASK(5, 4), (x) - 1) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:409:48: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 409 | regmap_write(dsi2->regmap, DSI2_DSI_VCID_CFG, TX_VCID(dsi2->channel)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:96:22: note: expanded from macro 'TX_VCID' 96 | #define TX_VCID(x) FIELD_PREP(GENMASK(1, 0), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:430:8: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 430 | val = IPI_DEPTH(color_depth) | | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:116:24: note: expanded from macro 'IPI_DEPTH' 116 | #define IPI_DEPTH(x) FIELD_PREP(GENMASK(7, 4), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:445:55: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 445 | regmap_write(dsi2->regmap, DSI2_IPI_VID_VSA_MAN_CFG, VID_VSA_LINES(vsa)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:133:27: note: expanded from macro 'VID_VSA_LINES' 133 | #define VID_VSA_LINES(x) FIELD_PREP(GENMASK(9, 0), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:461:51: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 461 | regmap_write(dsi2->regmap, DSI2_IPI_PIX_PKT_CFG, MAX_PIX_PKT(val)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:141:26: note: expanded from macro 'MAX_PIX_PKT' 141 | #define MAX_PIX_PKT(x) FIELD_PREP(GENMASK(15, 0), x) | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:573:56: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 573 | regmap_write(dsi2->regmap, DSI2_CRI_TX_HDR, hdr_val | CMD_TX_MODE(lpm)); | ^ drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c:110:26: note: expanded from macro 'CMD_TX_MODE' 110 | #define CMD_TX_MODE(x) FIELD_PREP(BIT(24), x) | ^ 1 warning and 10 errors generated. vim +/FIELD_PREP +315 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi2.c c55ecdf5f795ca Heiko Stuebner 2024-11-26 300 c55ecdf5f795ca Heiko Stuebner 2024-11-26 301 static void dw_mipi_dsi2_phy_clk_mode_cfg(struct dw_mipi_dsi2 *dsi2) c55ecdf5f795ca Heiko Stuebner 2024-11-26 302 { c55ecdf5f795ca Heiko Stuebner 2024-11-26 303 u32 sys_clk, esc_clk_div; c55ecdf5f795ca Heiko Stuebner 2024-11-26 304 u32 val = 0; c55ecdf5f795ca Heiko Stuebner 2024-11-26 305 c55ecdf5f795ca Heiko Stuebner 2024-11-26 306 /* c55ecdf5f795ca Heiko Stuebner 2024-11-26 307 * clk_type should be NON_CONTINUOUS_CLK before c55ecdf5f795ca Heiko Stuebner 2024-11-26 308 * initial deskew calibration be sent. c55ecdf5f795ca Heiko Stuebner 2024-11-26 309 */ c55ecdf5f795ca Heiko Stuebner 2024-11-26 310 val |= NON_CONTINUOUS_CLK; c55ecdf5f795ca Heiko Stuebner 2024-11-26 311 c55ecdf5f795ca Heiko Stuebner 2024-11-26 312 /* The maximum value of the escape clock frequency is 20MHz */ c55ecdf5f795ca Heiko Stuebner 2024-11-26 313 sys_clk = clk_get_rate(dsi2->sys_clk) / USEC_PER_SEC; c55ecdf5f795ca Heiko Stuebner 2024-11-26 314 esc_clk_div = DIV_ROUND_UP(sys_clk, 20 * 2); c55ecdf5f795ca Heiko Stuebner 2024-11-26 @315 val |= PHY_LPTX_CLK_DIV(esc_clk_div); c55ecdf5f795ca Heiko Stuebner 2024-11-26 316 c55ecdf5f795ca Heiko Stuebner 2024-11-26 317 regmap_write(dsi2->regmap, DSI2_PHY_CLK_CFG, val); c55ecdf5f795ca Heiko Stuebner 2024-11-26 318 } c55ecdf5f795ca Heiko Stuebner 2024-11-26 319 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki