lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111121959.amEUJKMQ-lkp@intel.com>
Date:   Fri, 12 Nov 2021 19:53:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hannes Reinecke <hare@...e.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 13/21]
 drivers/scsi/aacraid/commsup.c:248:16: error: implicit declaration of
 function 'scsi_host_get_reserved_cmd'; did you mean
 'scsi_host_get_internal_cmd'?

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: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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=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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   drivers/scsi/aacraid/commsup.c: In function 'aac_fib_alloc':
>> drivers/scsi/aacraid/commsup.c:248:16: 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:14: error: assignment to 'struct scsi_cmnd *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
     248 |         scmd = scsi_host_get_reserved_cmd(dev->scsi_host_ptr, direction,
         |              ^
   cc1: all 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

Download attachment ".config.gz" of type "application/gzip" (69180 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ