linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-11-11 15:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 15:25 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-11 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 15:25 [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 kernel test robot

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).