From: kernel test robot <lkp@intel.com>
To: Heiko Stuebner <heiko@sntech.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
andy.yan@rock-chips.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, andrzej.hajda@intel.com,
neil.armstrong@linaro.org, rfoss@kernel.org,
Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se,
jernej.skrabec@gmail.com, dri-devel@lists.freedesktop.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
quentin.schulz@cherry.de,
Heiko Stuebner <heiko.stuebner@cherry.de>,
Daniel Semkowicz <dse@thaumatec.com>
Subject: Re: [PATCH v2 3/3] drm/rockchip: Add MIPI DSI2 glue driver for RK3588
Date: Thu, 28 Nov 2024 19:28:15 +0800 [thread overview]
Message-ID: <202411281937.QyowC5lv-lkp@intel.com> (raw)
In-Reply-To: <20241126201213.522753-4-heiko@sntech.de>
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@intel.com/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@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/202411281937.QyowC5lv-lkp@intel.com/
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
prev parent reply other threads:[~2024-11-28 11:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 20:12 [PATCH v2 0/3] drm/rockchip: Add driver for the new DSI2 controller Heiko Stuebner
2024-11-26 20:12 ` [PATCH v2 1/3] drm/bridge/synopsys: Add MIPI DSI2 host controller bridge Heiko Stuebner
2024-11-27 10:16 ` neil.armstrong
2024-11-26 20:12 ` [PATCH v2 2/3] dt-bindings: display: rockchip: Add schema for RK3588 DW DSI2 controller Heiko Stuebner
2024-11-27 15:05 ` Rob Herring (Arm)
2024-11-26 20:12 ` [PATCH v2 3/3] drm/rockchip: Add MIPI DSI2 glue driver for RK3588 Heiko Stuebner
2024-11-28 11:28 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202411281937.QyowC5lv-lkp@intel.com \
--to=lkp@intel.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=andrzej.hajda@intel.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=dse@thaumatec.com \
--cc=heiko.stuebner@cherry.de \
--cc=heiko@sntech.de \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quentin.schulz@cherry.de \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox