From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v1 15/15] scsi: pmcraid: use generic power management
Date: Sat, 18 Jul 2020 15:25:59 +0800 [thread overview]
Message-ID: <202007181531.ItorFuzB%lkp@intel.com> (raw)
In-Reply-To: <20200717063438.175022-16-vaibhavgupta40@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 7555 bytes --]
Hi Vaibhav,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.8-rc5]
[cannot apply to scsi/for-next mkp-scsi/for-next next-20200717]
[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/0day-ci/linux/commits/Vaibhav-Gupta/scsi-use-generic-power-management/20200717-144215
base: 11ba468877bb23f28956a35e896356252d63c983
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/pmcraid.c:5274:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (sizeof(dma_addr_t) == 4 ||
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/pmcraid.c:5278:6: note: uninitialized use occurs here
if (rc == 0)
^~
drivers/scsi/pmcraid.c:5274:2: note: remove the 'if' if its condition is always true
if (sizeof(dma_addr_t) == 4 ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/pmcraid.c:5270:8: note: initialize the variable 'rc' to silence this warning
int rc;
^
= 0
1 warning generated.
vim +5274 drivers/scsi/pmcraid.c
89a36810415077 Anil Ravindranath 2009-08-25 5258
89a36810415077 Anil Ravindranath 2009-08-25 5259 /**
89a36810415077 Anil Ravindranath 2009-08-25 5260 * pmcraid_resume - driver resume entry point PCI power management
7e38e77fcc9088 Vaibhav Gupta 2020-07-17 5261 * @dev: Device structure
89a36810415077 Anil Ravindranath 2009-08-25 5262 *
89a36810415077 Anil Ravindranath 2009-08-25 5263 * Return Value - 0 in case of success. Error code in case of any failure
89a36810415077 Anil Ravindranath 2009-08-25 5264 */
7e38e77fcc9088 Vaibhav Gupta 2020-07-17 5265 static int __maybe_unused pmcraid_resume(struct device *dev)
89a36810415077 Anil Ravindranath 2009-08-25 5266 {
7e38e77fcc9088 Vaibhav Gupta 2020-07-17 5267 struct pci_dev *pdev = to_pci_dev(dev);
89a36810415077 Anil Ravindranath 2009-08-25 5268 struct pmcraid_instance *pinstance = pci_get_drvdata(pdev);
89a36810415077 Anil Ravindranath 2009-08-25 5269 struct Scsi_Host *host = pinstance->host;
89a36810415077 Anil Ravindranath 2009-08-25 5270 int rc;
89a36810415077 Anil Ravindranath 2009-08-25 5271
7e38e77fcc9088 Vaibhav Gupta 2020-07-17 5272 device_wakeup_disable(dev);
89a36810415077 Anil Ravindranath 2009-08-25 5273
371a6c328ad423 Christoph Hellwig 2018-10-18 @5274 if (sizeof(dma_addr_t) == 4 ||
371a6c328ad423 Christoph Hellwig 2018-10-18 5275 dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)))
371a6c328ad423 Christoph Hellwig 2018-10-18 5276 rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
89a36810415077 Anil Ravindranath 2009-08-25 5277
89a36810415077 Anil Ravindranath 2009-08-25 5278 if (rc == 0)
371a6c328ad423 Christoph Hellwig 2018-10-18 5279 rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
89a36810415077 Anil Ravindranath 2009-08-25 5280
89a36810415077 Anil Ravindranath 2009-08-25 5281 if (rc != 0) {
348764024f1cd6 Anil Ravindranath 2009-09-09 5282 dev_err(&pdev->dev, "resume: Failed to set PCI DMA mask\n");
89a36810415077 Anil Ravindranath 2009-08-25 5283 goto disable_device;
89a36810415077 Anil Ravindranath 2009-08-25 5284 }
89a36810415077 Anil Ravindranath 2009-08-25 5285
c20c426732a5a5 Anil Ravindranath 2010-06-08 5286 pmcraid_disable_interrupts(pinstance, ~0);
89a36810415077 Anil Ravindranath 2009-08-25 5287 atomic_set(&pinstance->outstanding_cmds, 0);
89a36810415077 Anil Ravindranath 2009-08-25 5288 rc = pmcraid_register_interrupt_handler(pinstance);
89a36810415077 Anil Ravindranath 2009-08-25 5289
89a36810415077 Anil Ravindranath 2009-08-25 5290 if (rc) {
348764024f1cd6 Anil Ravindranath 2009-09-09 5291 dev_err(&pdev->dev,
348764024f1cd6 Anil Ravindranath 2009-09-09 5292 "resume: couldn't register interrupt handlers\n");
89a36810415077 Anil Ravindranath 2009-08-25 5293 rc = -ENODEV;
89a36810415077 Anil Ravindranath 2009-08-25 5294 goto release_host;
89a36810415077 Anil Ravindranath 2009-08-25 5295 }
89a36810415077 Anil Ravindranath 2009-08-25 5296
89a36810415077 Anil Ravindranath 2009-08-25 5297 pmcraid_init_tasklets(pinstance);
89a36810415077 Anil Ravindranath 2009-08-25 5298 pmcraid_enable_interrupts(pinstance, PMCRAID_PCI_INTERRUPTS);
89a36810415077 Anil Ravindranath 2009-08-25 5299
89a36810415077 Anil Ravindranath 2009-08-25 5300 /* Start with hard reset sequence which brings up IOA to operational
89a36810415077 Anil Ravindranath 2009-08-25 5301 * state as well as completes the reset sequence.
89a36810415077 Anil Ravindranath 2009-08-25 5302 */
89a36810415077 Anil Ravindranath 2009-08-25 5303 pinstance->ioa_hard_reset = 1;
89a36810415077 Anil Ravindranath 2009-08-25 5304
89a36810415077 Anil Ravindranath 2009-08-25 5305 /* Start IOA firmware initialization and bring card to Operational
89a36810415077 Anil Ravindranath 2009-08-25 5306 * state.
89a36810415077 Anil Ravindranath 2009-08-25 5307 */
89a36810415077 Anil Ravindranath 2009-08-25 5308 if (pmcraid_reset_bringup(pinstance)) {
348764024f1cd6 Anil Ravindranath 2009-09-09 5309 dev_err(&pdev->dev, "couldn't initialize IOA\n");
89a36810415077 Anil Ravindranath 2009-08-25 5310 rc = -ENODEV;
89a36810415077 Anil Ravindranath 2009-08-25 5311 goto release_tasklets;
89a36810415077 Anil Ravindranath 2009-08-25 5312 }
89a36810415077 Anil Ravindranath 2009-08-25 5313
89a36810415077 Anil Ravindranath 2009-08-25 5314 return 0;
89a36810415077 Anil Ravindranath 2009-08-25 5315
89a36810415077 Anil Ravindranath 2009-08-25 5316 release_tasklets:
c20c426732a5a5 Anil Ravindranath 2010-06-08 5317 pmcraid_disable_interrupts(pinstance, ~0);
89a36810415077 Anil Ravindranath 2009-08-25 5318 pmcraid_kill_tasklets(pinstance);
89a36810415077 Anil Ravindranath 2009-08-25 5319 pmcraid_unregister_interrupt_handler(pinstance);
89a36810415077 Anil Ravindranath 2009-08-25 5320
89a36810415077 Anil Ravindranath 2009-08-25 5321 release_host:
89a36810415077 Anil Ravindranath 2009-08-25 5322 scsi_host_put(host);
89a36810415077 Anil Ravindranath 2009-08-25 5323
89a36810415077 Anil Ravindranath 2009-08-25 5324 disable_device:
89a36810415077 Anil Ravindranath 2009-08-25 5325
89a36810415077 Anil Ravindranath 2009-08-25 5326 return rc;
89a36810415077 Anil Ravindranath 2009-08-25 5327 }
89a36810415077 Anil Ravindranath 2009-08-25 5328
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 75353 bytes --]
prev parent reply other threads:[~2020-07-18 7:25 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 6:34 [Linux-kernel-mentees] [PATCH v1 00/15] scsi: use generic power management Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 01/15] scsi: megaraid_sas: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 02/15] scsi: aacraid: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 03/15] scsi: aic7xxx: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 04/15] scsi: aic79xx: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 05/15] scsi: arcmsr: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 06/15] scsi: esas2r: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 20:01 ` kernel test robot
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 07/15] scsi: hisi_sas_v3_hw: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-20 6:16 ` [Linux-kernel-mentees] " chenxiang (M)
2020-07-20 6:16 ` chenxiang (M)
2020-07-20 6:32 ` [Linux-kernel-mentees] " Vaibhav Gupta
2020-07-20 6:32 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 08/15] scsi: mpt3sas_scsih: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 09/15] scsi: lpfc: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 10/15] scsi: pm_8001: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 11/15] scsi: hpsa: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 12/15] scsi: 3w-9xxx: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 13/15] scsi: 3w-sas: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 14/15] scsi: mvumi: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-17 6:34 ` [Linux-kernel-mentees] [PATCH v1 15/15] scsi: pmcraid: " Vaibhav Gupta
2020-07-17 6:34 ` Vaibhav Gupta
2020-07-18 7:25 ` kernel test robot [this message]
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=202007181531.ItorFuzB%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.