[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112110644.NcoPvA8p-lkp@intel.com>
Date: Sat, 11 Dec 2021 06:38:16 +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 10/23]
drivers/gpu/drm/meson/meson_encoder_dsi.c:125:69: warning: variable 'ret' is
uninitialized when used here
tree: https://github.com/superna9999/linux amlogic/v5.17/g12-dsi
head: 62dac9179f2937dc08bffe08d15c6846bc4aedb4
commit: d521159dd8a996678230b50e4ecafcdf50648c52 [10/23] fixup! WIP: drm/meson: add DSI encoder
config: arm-randconfig-r033-20211210 (https://download.01.org/0day-ci/archive/20211211/202112110644.NcoPvA8p-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/d521159dd8a996678230b50e4ecafcdf50648c52
git remote add superna9999 https://github.com/superna9999/linux
git fetch --no-tags superna9999 amlogic/v5.17/g12-dsi
git checkout d521159dd8a996678230b50e4ecafcdf50648c52
# 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 warnings (new ones prefixed by >>):
>> drivers/gpu/drm/meson/meson_encoder_dsi.c:125: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:108:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning generated.
vim +/ret +125 drivers/gpu/drm/meson/meson_encoder_dsi.c
6b197be782e0410 Neil Armstrong 2021-12-09 103
6b197be782e0410 Neil Armstrong 2021-12-09 104 int meson_encoder_dsi_init(struct meson_drm *priv)
6b197be782e0410 Neil Armstrong 2021-12-09 105 {
6b197be782e0410 Neil Armstrong 2021-12-09 106 struct meson_encoder_dsi *meson_encoder_dsi;
6b197be782e0410 Neil Armstrong 2021-12-09 107 struct device_node *remote;
6b197be782e0410 Neil Armstrong 2021-12-09 108 int ret;
6b197be782e0410 Neil Armstrong 2021-12-09 109
6b197be782e0410 Neil Armstrong 2021-12-09 110 DRM_DEBUG_DRIVER("\n");
6b197be782e0410 Neil Armstrong 2021-12-09 111
6b197be782e0410 Neil Armstrong 2021-12-09 112 meson_encoder_dsi = devm_kzalloc(priv->dev, sizeof(*meson_encoder_dsi), GFP_KERNEL);
6b197be782e0410 Neil Armstrong 2021-12-09 113 if (!meson_encoder_dsi)
6b197be782e0410 Neil Armstrong 2021-12-09 114 return -ENOMEM;
6b197be782e0410 Neil Armstrong 2021-12-09 115
6b197be782e0410 Neil Armstrong 2021-12-09 116 /* DSI Transceiver Bridge */
6b197be782e0410 Neil Armstrong 2021-12-09 117 remote = of_graph_get_remote_node(priv->dev->of_node, 1, 0);
6b197be782e0410 Neil Armstrong 2021-12-09 118 if (!remote) {
6b197be782e0410 Neil Armstrong 2021-12-09 119 dev_err(priv->dev, "DSI transceiver device is disabled");
6b197be782e0410 Neil Armstrong 2021-12-09 120 return 0;
6b197be782e0410 Neil Armstrong 2021-12-09 121 }
6b197be782e0410 Neil Armstrong 2021-12-09 122
6b197be782e0410 Neil Armstrong 2021-12-09 123 meson_encoder_dsi->next_bridge = of_drm_find_bridge(remote);
6b197be782e0410 Neil Armstrong 2021-12-09 124 if (!meson_encoder_dsi->next_bridge) {
6b197be782e0410 Neil Armstrong 2021-12-09 @125 dev_err(priv->dev, "Failed to find DSI transceiver bridge: %d\n", ret);
:::::: The code at line 125 was first introduced by commit
:::::: 6b197be782e0410bb911b74fb152daefccce6a29 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