From: kernel test robot <lkp@intel.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
alim.akhtar@samsung.com, avri.altman@wdc.com, robh+dt@kernel.org,
krzk+dt@kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
jejb@linux.ibm.com, martin.petersen@oracle.com,
linux-scsi@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: Re: [PATCH v3 4/7] scsi: ufs-renesas: Add support for Renesas R-Car UFS controller
Date: Wed, 20 Apr 2022 07:40:18 +0800 [thread overview]
Message-ID: <202204200731.hTb71eG4-lkp@intel.com> (raw)
In-Reply-To: <20220419120316.209151-5-yoshihiro.shimoda.uh@renesas.com>
Hi Yoshihiro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on geert-renesas-devel/next]
[also build test WARNING on v5.18-rc3 next-20220419]
[cannot apply to mkp-scsi/for-next jejb-scsi/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]
url: https://github.com/intel-lab-lkp/linux/commits/Yoshihiro-Shimoda/treewide-scsi-ufs-Add-support-for-Renesas-R-Car-UFS-controller/20220419-201020
base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220420/202204200731.hTb71eG4-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c1c49a356162b22554088d269f7689bdb044a9f1)
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/intel-lab-lkp/linux/commit/3dca0de1a5ecda3be36402f3261cf286ce9dce64
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Yoshihiro-Shimoda/treewide-scsi-ufs-Add-support-for-Renesas-R-Car-UFS-controller/20220419-201020
git checkout 3dca0de1a5ecda3be36402f3261cf286ce9dce64
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/scsi/ufs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/ufs/ufs-renesas.c:304:15: warning: variable 'val' is uninitialized when used here [-Wuninitialized]
p->index, val);
^~~
include/linux/printk.h:570:26: note: expanded from macro 'pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:163:22: note: expanded from macro 'dynamic_pr_debug'
pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
drivers/scsi/ufs/ufs-renesas.c:285:9: note: initialize the variable 'val' to silence this warning
u32 val;
^
= 0
1 warning generated.
vim +/val +304 drivers/scsi/ufs/ufs-renesas.c
279
280 static void ufs_renesas_reg_control(struct ufs_hba *hba,
281 const struct ufs_renesas_init_param *p)
282 {
283 static u32 save[MAX_INDEX];
284 int ret;
285 u32 val;
286
287 pr_debug("%s: %d %04x %08x, %08x, %d\n", __func__, p->mode, p->reg,
288 p->u.val, p->mask, p->index);
289
290 WARN_ON(p->index >= MAX_INDEX);
291
292 switch (p->mode) {
293 case MODE_RESTORE:
294 ufshcd_writel(hba, save[p->index], p->reg);
295 break;
296 case MODE_SET:
297 pr_debug("%s: %d %x %x\n", __func__, p->index, save[p->index],
298 p->u.set);
299 save[p->index] |= p->u.set;
300 break;
301 case MODE_SAVE:
302 save[p->index] = ufshcd_readl(hba, p->reg) & p->mask;
303 pr_debug("%s: index = %d, val = %08x\n", __func__,
> 304 p->index, val);
305 break;
306 case MODE_POLL:
307 ret = readl_poll_timeout_atomic(hba->mmio_base + p->reg,
308 val,
309 (val & p->mask) == p->u.expected,
310 10, 1000);
311 if (ret)
312 pr_err("%s: poll failed %d (%08x, %08x, %08x)\n",
313 __func__, ret, val, p->mask, p->u.expected);
314 break;
315 case MODE_WAIT:
316 if (p->u.delay_us > 1000)
317 mdelay(p->u.delay_us / 1000);
318 else
319 udelay(p->u.delay_us);
320 break;
321 case MODE_WRITE:
322 ufshcd_writel(hba, p->u.val, p->reg);
323 break;
324 default:
325 break;
326 }
327 }
328
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-04-19 23:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-19 12:03 [PATCH v3 0/7] treewide: scsi: ufs: Add support for Renesas R-Car UFS controller Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 1/7] dt-bindings: ufs: Document Renesas R-Car UFS host controller Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 2/7] ufs: add UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 3/7] ufs: add UFSHCD_QUIRK_HIBERN_FASTAUTO Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 4/7] scsi: ufs-renesas: Add support for Renesas R-Car UFS controller Yoshihiro Shimoda
2022-04-19 23:40 ` kernel test robot [this message]
2022-04-20 1:56 ` Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 5/7] scsi: MAINTAINERS: Add maintainer for Renesas UFS driver Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 6/7] arm64: dts: renesas: r8a779f0: Add UFS node Yoshihiro Shimoda
2022-04-19 12:03 ` [PATCH v3 7/7] arm64: dts: renesas: r8a779f0: spider-cpu: Enable UFS device Yoshihiro Shimoda
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=202204200731.hTb71eG4-lkp@intel.com \
--to=lkp@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=devicetree@vger.kernel.org \
--cc=jejb@linux.ibm.com \
--cc=kbuild-all@lists.01.org \
--cc=krzk+dt@kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=martin.petersen@oracle.com \
--cc=robh+dt@kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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