From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:ata-trace.v4 16/68] drivers/ata/sata_mv.c:1276:30: warning: 'dw' is used uninitialized
Date: Fri, 10 Dec 2021 21:17:08 +0800 [thread overview]
Message-ID: <202112102158.vl74bmsi-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git ata-trace.v4
head: 543d0f43ed9c7b04ab463b52f2e59fd406b4bde8
commit: f3e85aba1ba67f2efcc34413ed9546be69229179 [16/68] sata_mv: replace DPRINTK with dynamic debugging
config: m68k-randconfig-r006-20211210 (https://download.01.org/0day-ci/archive/20211210/202112102158.vl74bmsi-lkp@intel.com/config)
compiler: m68k-linux-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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=f3e85aba1ba67f2efcc34413ed9546be69229179
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel ata-trace.v4
git checkout f3e85aba1ba67f2efcc34413ed9546be69229179
# 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=m68k SHELL=/bin/bash drivers/ata/
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/ata/sata_mv.c:790:35: warning: 'mv_pci_tbl' defined but not used [-Wunused-const-variable=]
790 | static const struct pci_device_id mv_pci_tbl[] = {
| ^~~~~~~~~~
drivers/ata/sata_mv.c: In function 'mv_pci_error':
>> drivers/ata/sata_mv.c:1276:30: warning: 'dw' is used uninitialized [-Wuninitialized]
1276 | o += snprintf(linebuf + o, 38 - o,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1277 | "%08x ", dw);
| ~~~~~~~~~~~~
drivers/ata/sata_mv.c:1270:13: note: 'dw' was declared here
1270 | u32 dw;
| ^~
vim +/dw +1276 drivers/ata/sata_mv.c
1266
1267 static void mv_dump_pci_cfg(struct pci_dev *pdev, unsigned bytes)
1268 {
1269 int b, w, o;
1270 u32 dw;
1271 unsigned char linebuf[38];
1272
1273 for (b = 0; b < bytes; ) {
1274 for (w = 0, o = 0; b < bytes && w < 4; w++) {
1275 (void) pci_read_config_dword(pdev, b, &dw);
> 1276 o += snprintf(linebuf + o, 38 - o,
1277 "%08x ", dw);
1278 b += sizeof(u32);
1279 }
1280 dev_dbg(&pdev->dev, "%s: %02x: %s\n",
1281 __func__, b, linebuf);
1282 }
1283 }
1284
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-10 13:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112102158.vl74bmsi-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®