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