Re: [PATCHv3] scsi: use 'scsi_device_from_queue()' for scsi_dh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hannes,

[auto build test WARNING on scsi/for-next]
[also build test WARNING on v4.10-rc8 next-20170216]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Hannes-Reinecke/scsi-use-scsi_device_from_queue-for-scsi_dh/20170217-161522
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-randconfig-a0-02171706 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/scsi/scsi_lib.c: In function 'scsi_device_from_queue':
>> drivers/scsi/scsi_lib.c:2157: warning: unused variable 'flags'

vim +/flags +2157 drivers/scsi/scsi_lib.c

  2141	
  2142	void scsi_mq_destroy_tags(struct Scsi_Host *shost)
  2143	{
  2144		blk_mq_free_tag_set(&shost->tag_set);
  2145	}
  2146	
  2147	/**
  2148	 * scsi_device_from_queue - return sdev associated with a request_queue
  2149	 * @q: The request queue to return the sdev from
  2150	 *
  2151	 * Return the sdev associated with a request queue or NULL if the
  2152	 * request_queue does not reference a SCSI device.
  2153	 */
  2154	struct scsi_device *scsi_device_from_queue(struct request_queue *q)
  2155	{
  2156		struct scsi_device *sdev = NULL;
> 2157		unsigned long flags;
  2158	
  2159		if (q->mq_ops) {
  2160			if (q->mq_ops == &scsi_mq_ops)
  2161				sdev = q->queuedata;
  2162		} else if (q->request_fn == scsi_request_fn)
  2163			sdev = q->queuedata;
  2164		if (!sdev || !get_device(&sdev->sdev_gendev))
  2165			sdev = NULL;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux