linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 13/21] drivers/scsi/aacraid/commsup.c:248:7: warning: assignment to 'struct scsi_cmnd *' from 'int' makes pointer from integer without a cast
Date: Thu, 11 Nov 2021 23:25:22 +0800	[thread overview]
Message-ID: <202111112317.PtCgfMBn-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2773 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head:   915b986531e666d840f72752c597fb6b4ea69d35
commit: d855c0f944ed75c432d076b0c2f5ea5a156276da [13/21] aacraid: use scsi_get_internal_cmd()
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=d855c0f944ed75c432d076b0c2f5ea5a156276da
        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 scsi-private.v2
        git checkout d855c0f944ed75c432d076b0c2f5ea5a156276da
        # save the attached .config to linux build tree
        make W=1 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/aacraid/commsup.c: In function 'aac_fib_alloc':
   drivers/scsi/aacraid/commsup.c:248:9: error: implicit declaration of function 'scsi_host_get_reserved_cmd'; did you mean 'scsi_host_get_internal_cmd'? [-Werror=implicit-function-declaration]
     248 |  scmd = scsi_host_get_reserved_cmd(dev->scsi_host_ptr, direction,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |         scsi_host_get_internal_cmd
>> drivers/scsi/aacraid/commsup.c:248:7: warning: assignment to 'struct scsi_cmnd *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     248 |  scmd = scsi_host_get_reserved_cmd(dev->scsi_host_ptr, direction,
         |       ^
   cc1: some warnings being treated as errors


vim +248 drivers/scsi/aacraid/commsup.c

   231	
   232	/**
   233	 *	aac_fib_alloc	-	allocate a fib
   234	 *	@dev: Adapter to allocate the fib for
   235	 *	@direction: DMA data direction
   236	 *
   237	 *	Allocate a fib from the adapter fib pool. If the pool is empty we
   238	 *	return NULL.
   239	 */
   240	
   241	struct fib *aac_fib_alloc(struct aac_dev *dev, int direction)
   242	{
   243		struct scsi_cmnd *scmd;
   244		struct fib * fibptr = NULL;
   245		unsigned long flags;
   246	
   247		spin_lock_irqsave(&dev->fib_lock, flags);
 > 248		scmd = scsi_host_get_reserved_cmd(dev->scsi_host_ptr, direction,
   249						  REQ_NOWAIT);
   250		if (scmd) {
   251			fibptr = aac_fib_alloc_tag(dev, scmd);
   252			fibptr->flags |= FIB_CONTEXT_FLAG_INTERNAL_CMD;
   253		}
   254		spin_unlock_irqrestore(&dev->fib_lock, flags);
   255		if (!fibptr)
   256			return NULL;
   257	
   258		fibptr->size = sizeof(struct fib);
   259	
   260		return fibptr;
   261	}
   262	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29131 bytes --]

                 reply	other threads:[~2021-11-11 15:25 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=202111112317.PtCgfMBn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hare@suse.com \
    --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;
as well as URLs for NNTP newsgroup(s).