[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112111247.XKv1vmaF-lkp@intel.com>
Date: Sat, 11 Dec 2021 12:50:38 +0800
From: kernel test robot <lkp@...el.com>
To: Neil Armstrong <narmstrong@...libre.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [superna9999:amlogic/v5.17/g12-dsi 20/23]
drivers/gpu/drm/meson/meson_encoder_dsi.c:59:37: error: passing 'const
struct drm_display_mode *' to parameter of type 'struct drm_display_mode *'
discards qualifiers
tree: https://github.com/superna9999/linux amlogic/v5.17/g12-dsi
head: 62dac9179f2937dc08bffe08d15c6846bc4aedb4
commit: b186318175a12bdca613ee26b4b452964c795eb3 [20/23] fixup! WIP: drm/meson: add DSI encoder
config: arm-randconfig-r033-20211210 (https://download.01.org/0day-ci/archive/20211211/202112111247.XKv1vmaF-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/superna9999/linux/commit/b186318175a12bdca613ee26b4b452964c795eb3
git remote add superna9999 https://github.com/superna9999/linux
git fetch --no-tags superna9999 amlogic/v5.17/g12-dsi
git checkout b186318175a12bdca613ee26b4b452964c795eb3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/meson/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/meson/meson_encoder_dsi.c:59:37: error: passing 'const struct drm_display_mode *' to parameter of type 'struct drm_display_mode *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
meson_venc_mipi_dsi_mode_set(priv, mode);
^~~~
drivers/gpu/drm/meson/meson_venc.h:71:32: note: passing argument to parameter 'mode' here
struct drm_display_mode *mode);
^
drivers/gpu/drm/meson/meson_encoder_dsi.c:130:69: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
dev_err(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);
^~~
include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
drivers/gpu/drm/meson/meson_encoder_dsi.c:109:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning and 1 error generated.
vim +59 drivers/gpu/drm/meson/meson_encoder_dsi.c
6b197be782e041 Neil Armstrong 2021-12-09 47
b186318175a12b Neil Armstrong 2021-12-10 48 static void meson_encoder_dsi_mode_set(struct drm_bridge *bridge,
b186318175a12b Neil Armstrong 2021-12-10 49 const struct drm_display_mode *mode,
b186318175a12b Neil Armstrong 2021-12-10 50 const struct drm_display_mode *adjusted_mode)
6b197be782e041 Neil Armstrong 2021-12-09 51 {
6b197be782e041 Neil Armstrong 2021-12-09 52 struct meson_encoder_dsi *encoder_dsi = bridge_to_meson_encoder_dsi(bridge);
6b197be782e041 Neil Armstrong 2021-12-09 53 struct meson_drm *priv = encoder_dsi->priv;
6b197be782e041 Neil Armstrong 2021-12-09 54
b186318175a12b Neil Armstrong 2021-12-10 55 pr_err("%s:%d\n", __func__, __LINE__);
6b197be782e041 Neil Armstrong 2021-12-09 56
b186318175a12b Neil Armstrong 2021-12-10 57 meson_vclk_setup(priv, MESON_VCLK_TARGET_DSI, mode->clock, 0, 0, 0, false);
6b197be782e041 Neil Armstrong 2021-12-09 58
d521159dd8a996 Neil Armstrong 2021-12-10 @59 meson_venc_mipi_dsi_mode_set(priv, mode);
e1e87e576f5bef Neil Armstrong 2021-12-09 60 meson_encl_load_gamma(priv);
6b197be782e041 Neil Armstrong 2021-12-09 61
b186318175a12b Neil Armstrong 2021-12-10 62 writel_relaxed(0, priv->io_base + _REG(ENCL_VIDEO_EN));
b186318175a12b Neil Armstrong 2021-12-10 63
e1e87e576f5bef Neil Armstrong 2021-12-09 64 writel_bits_relaxed(BIT(3), BIT(3), priv->io_base + _REG(ENCL_VIDEO_MODE_ADV));
e1e87e576f5bef Neil Armstrong 2021-12-09 65 writel_relaxed(0, priv->io_base + _REG(ENCL_TST_EN));
b186318175a12b Neil Armstrong 2021-12-10 66 }
b186318175a12b Neil Armstrong 2021-12-10 67
:::::: The code at line 59 was first introduced by commit
:::::: d521159dd8a996678230b50e4ecafcdf50648c52 fixup! WIP: drm/meson: add DSI encoder
:::::: TO: Neil Armstrong <narmstrong@...libre.com>
:::::: CC: Neil Armstrong <narmstrong@...libre.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists