Hi Jim,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.14-rc1 next-20210714]
[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]
url:
https://github.com/0day-ci/linux/commits/Jim-Cromie/drm-use-dyndbg-in-drm...
base:
git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a015-20210714 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/0day-ci/linux/commit/4a3dcdd418da090977ab9fa225818e5ad...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Jim-Cromie/drm-use-dyndbg-in-drm_print/20210715-015347
git checkout 4a3dcdd418da090977ab9fa225818e5ad142288d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64
SHELL=/bin/bash drivers/gpu/drm/bridge/ drivers/gpu/drm/exynos/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/bridge/nwl-dsi.c:229:2: error: no member named
'dev' in 'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "DSI Lanes %d\n", dsi->lanes);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:242:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "cfg_t_pre: 0x%x\n", cycles);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:245:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "cfg_tx_gap (pre): 0x%x\n",
cycles);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:247:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "cfg_t_post: 0x%x\n", cycles);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:250:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "cfg_tx_gap: 0x%x\n", cycles);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:259:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "cfg_twakeup: 0x%x\n", cycles);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:281:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hfront_porch = %d\n",
hfront_porch);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:282:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hback_porch = %d\n",
hback_porch);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/bridge/nwl-dsi.c:283:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hsync_len = %d\n", hsync_len);
^
include/drm/drm_print.h:439:2: note: expanded from macro
'DRM_DEV_DEBUG_DRIVER'
drm_dev_dbg(dev, cDRM_UT_DRIVER, fmt, ##__VA_ARGS__)
--
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:112:2: error: no member
named 'dev' in 'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(dev->dev,
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
1 error generated.
--
> drivers/gpu/drm/exynos/exynos_drm_fimc.c:188:2: error: no member
named 'dev' in 'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "enable[%d]\n", enable);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:203:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "enable[%d]\n", enable);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:227:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "flag[0x%x]\n", flag);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:249:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "cfg[0x%x]\n", cfg);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:271:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "present[%d]before[%d]\n",
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:281:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "buf_id[%d]\n", buf_id);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:290:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "enable[%d]\n", enable);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:305:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "fmt[0x%x]\n", fmt);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
^
include/drm/drm_print.h:330:30: note: expanded from macro 'drm_dev_dbg'
_drm_dev_dbg((drm) ? (drm)->dev : NULL, cls, fmt, ##__VA_ARGS__)
^
include/linux/device.h:544:10: note: 'devt' declared here
dev_t devt; /* dev_t, creates the sysfs "dev" */
^
drivers/gpu/drm/exynos/exynos_drm_fimc.c:370:2: error: no member named 'dev' in
'struct device'; did you mean 'devt'?
DRM_DEV_DEBUG_KMS(ctx->dev, "fmt[0x%x]\n", fmt);
^
include/drm/drm_print.h:447:2: note: expanded from macro 'DRM_DEV_DEBUG_KMS'
drm_dev_dbg(dev, cDRM_UT_KMS, fmt, ##__VA_ARGS__)
vim +229 drivers/gpu/drm/bridge/nwl-dsi.c
44cfc6233447cb Guido Günther 2020-04-09 220
44cfc6233447cb Guido Günther 2020-04-09 221 static int nwl_dsi_config_host(struct
nwl_dsi *dsi)
44cfc6233447cb Guido Günther 2020-04-09 222 {
44cfc6233447cb Guido Günther 2020-04-09 223 u32 cycles;
44cfc6233447cb Guido Günther 2020-04-09 224 struct phy_configure_opts_mipi_dphy *cfg =
&dsi->phy_cfg.mipi_dphy;
44cfc6233447cb Guido Günther 2020-04-09 225
44cfc6233447cb Guido Günther 2020-04-09 226 if (dsi->lanes < 1 || dsi->lanes
> 4)
44cfc6233447cb Guido Günther 2020-04-09 227 return -EINVAL;
44cfc6233447cb Guido Günther 2020-04-09 228
44cfc6233447cb Guido Günther 2020-04-09 @229 DRM_DEV_DEBUG_DRIVER(dsi->dev, "DSI
Lanes %d\n", dsi->lanes);
44cfc6233447cb Guido Günther 2020-04-09 230 nwl_dsi_write(dsi, NWL_DSI_CFG_NUM_LANES,
dsi->lanes - 1);
44cfc6233447cb Guido Günther 2020-04-09 231
44cfc6233447cb Guido Günther 2020-04-09 232 if (dsi->dsi_mode_flags &
MIPI_DSI_CLOCK_NON_CONTINUOUS) {
44cfc6233447cb Guido Günther 2020-04-09 233 nwl_dsi_write(dsi,
NWL_DSI_CFG_NONCONTINUOUS_CLK, 0x01);
44cfc6233447cb Guido Günther 2020-04-09 234 nwl_dsi_write(dsi,
NWL_DSI_CFG_AUTOINSERT_EOTP, 0x01);
44cfc6233447cb Guido Günther 2020-04-09 235 } else {
44cfc6233447cb Guido Günther 2020-04-09 236 nwl_dsi_write(dsi,
NWL_DSI_CFG_NONCONTINUOUS_CLK, 0x00);
44cfc6233447cb Guido Günther 2020-04-09 237 nwl_dsi_write(dsi,
NWL_DSI_CFG_AUTOINSERT_EOTP, 0x00);
44cfc6233447cb Guido Günther 2020-04-09 238 }
44cfc6233447cb Guido Günther 2020-04-09 239
44cfc6233447cb Guido Günther 2020-04-09 240 /* values in byte clock cycles */
44cfc6233447cb Guido Günther 2020-04-09 241 cycles = ui2bc(dsi, cfg->clk_pre);
44cfc6233447cb Guido Günther 2020-04-09 242 DRM_DEV_DEBUG_DRIVER(dsi->dev,
"cfg_t_pre: 0x%x\n", cycles);
44cfc6233447cb Guido Günther 2020-04-09 243 nwl_dsi_write(dsi, NWL_DSI_CFG_T_PRE,
cycles);
44cfc6233447cb Guido Günther 2020-04-09 244 cycles = ps2bc(dsi, cfg->lpx +
cfg->clk_prepare + cfg->clk_zero);
44cfc6233447cb Guido Günther 2020-04-09 245 DRM_DEV_DEBUG_DRIVER(dsi->dev,
"cfg_tx_gap (pre): 0x%x\n", cycles);
44cfc6233447cb Guido Günther 2020-04-09 246 cycles += ui2bc(dsi, cfg->clk_pre);
44cfc6233447cb Guido Günther 2020-04-09 247 DRM_DEV_DEBUG_DRIVER(dsi->dev,
"cfg_t_post: 0x%x\n", cycles);
44cfc6233447cb Guido Günther 2020-04-09 248 nwl_dsi_write(dsi, NWL_DSI_CFG_T_POST,
cycles);
44cfc6233447cb Guido Günther 2020-04-09 249 cycles = ps2bc(dsi, cfg->hs_exit);
44cfc6233447cb Guido Günther 2020-04-09 250 DRM_DEV_DEBUG_DRIVER(dsi->dev,
"cfg_tx_gap: 0x%x\n", cycles);
44cfc6233447cb Guido Günther 2020-04-09 251 nwl_dsi_write(dsi, NWL_DSI_CFG_TX_GAP,
cycles);
44cfc6233447cb Guido Günther 2020-04-09 252
44cfc6233447cb Guido Günther 2020-04-09 253 nwl_dsi_write(dsi,
NWL_DSI_CFG_EXTRA_CMDS_AFTER_EOTP, 0x01);
44cfc6233447cb Guido Günther 2020-04-09 254 nwl_dsi_write(dsi,
NWL_DSI_CFG_HTX_TO_COUNT, 0x00);
44cfc6233447cb Guido Günther 2020-04-09 255 nwl_dsi_write(dsi,
NWL_DSI_CFG_LRX_H_TO_COUNT, 0x00);
44cfc6233447cb Guido Günther 2020-04-09 256 nwl_dsi_write(dsi,
NWL_DSI_CFG_BTA_H_TO_COUNT, 0x00);
44cfc6233447cb Guido Günther 2020-04-09 257 /* In LP clock cycles */
44cfc6233447cb Guido Günther 2020-04-09 258 cycles = us2lp(cfg->lp_clk_rate,
cfg->wakeup);
44cfc6233447cb Guido Günther 2020-04-09 259 DRM_DEV_DEBUG_DRIVER(dsi->dev,
"cfg_twakeup: 0x%x\n", cycles);
44cfc6233447cb Guido Günther 2020-04-09 260 nwl_dsi_write(dsi, NWL_DSI_CFG_TWAKEUP,
cycles);
44cfc6233447cb Guido Günther 2020-04-09 261
44cfc6233447cb Guido Günther 2020-04-09 262 return nwl_dsi_clear_error(dsi);
44cfc6233447cb Guido Günther 2020-04-09 263 }
44cfc6233447cb Guido Günther 2020-04-09 264
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org