[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112110612.0VVbVR6R-lkp@intel.com>
Date: Sat, 11 Dec 2021 06:28:00 +0800
From: kernel test robot <lkp@...el.com>
To: Neil Armstrong <narmstrong@...libre.com>
Cc: 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:44: warning: passing argument 2
of 'meson_venc_mipi_dsi_mode_set' discards 'const' qualifier from pointer
target type
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-r013-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110612.0VVbVR6R-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
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
# 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=gcc-11.2.0 make.cross 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 warnings (new ones prefixed by >>):
drivers/gpu/drm/meson/meson_encoder_dsi.c: In function 'meson_encoder_dsi_mode_set':
>> drivers/gpu/drm/meson/meson_encoder_dsi.c:59:44: warning: passing argument 2 of 'meson_venc_mipi_dsi_mode_set' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
59 | meson_venc_mipi_dsi_mode_set(priv, mode);
| ^~~~
In file included from drivers/gpu/drm/meson/meson_encoder_dsi.c:24:
drivers/gpu/drm/meson/meson_venc.h:71:60: note: expected 'struct drm_display_mode *' but argument is of type 'const struct drm_display_mode *'
71 | struct drm_display_mode *mode);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
vim +59 drivers/gpu/drm/meson/meson_encoder_dsi.c
6b197be782e0410 Neil Armstrong 2021-12-09 47
b186318175a12bd Neil Armstrong 2021-12-10 48 static void meson_encoder_dsi_mode_set(struct drm_bridge *bridge,
b186318175a12bd Neil Armstrong 2021-12-10 49 const struct drm_display_mode *mode,
b186318175a12bd Neil Armstrong 2021-12-10 50 const struct drm_display_mode *adjusted_mode)
6b197be782e0410 Neil Armstrong 2021-12-09 51 {
6b197be782e0410 Neil Armstrong 2021-12-09 52 struct meson_encoder_dsi *encoder_dsi = bridge_to_meson_encoder_dsi(bridge);
6b197be782e0410 Neil Armstrong 2021-12-09 53 struct meson_drm *priv = encoder_dsi->priv;
6b197be782e0410 Neil Armstrong 2021-12-09 54
b186318175a12bd Neil Armstrong 2021-12-10 55 pr_err("%s:%d\n", __func__, __LINE__);
6b197be782e0410 Neil Armstrong 2021-12-09 56
b186318175a12bd Neil Armstrong 2021-12-10 57 meson_vclk_setup(priv, MESON_VCLK_TARGET_DSI, mode->clock, 0, 0, 0, false);
6b197be782e0410 Neil Armstrong 2021-12-09 58
d521159dd8a9966 Neil Armstrong 2021-12-10 @59 meson_venc_mipi_dsi_mode_set(priv, mode);
e1e87e576f5befb Neil Armstrong 2021-12-09 60 meson_encl_load_gamma(priv);
6b197be782e0410 Neil Armstrong 2021-12-09 61
b186318175a12bd Neil Armstrong 2021-12-10 62 writel_relaxed(0, priv->io_base + _REG(ENCL_VIDEO_EN));
b186318175a12bd Neil Armstrong 2021-12-10 63
e1e87e576f5befb Neil Armstrong 2021-12-09 64 writel_bits_relaxed(BIT(3), BIT(3), priv->io_base + _REG(ENCL_VIDEO_MODE_ADV));
e1e87e576f5befb Neil Armstrong 2021-12-09 65 writel_relaxed(0, priv->io_base + _REG(ENCL_TST_EN));
b186318175a12bd Neil Armstrong 2021-12-10 66 }
b186318175a12bd 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