All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: John Garry <john.garry@huawei.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH RFC 2/2] libata: Use scsi cmnd budget token for qc tag for SAS host
Date: Wed, 16 Mar 2022 04:25:12 +0800	[thread overview]
Message-ID: <202203160450.G7KPHd4L-lkp@intel.com> (raw)
In-Reply-To: <1647340746-17600-3-git-send-email-john.garry@huawei.com>

Hi John,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on jejb-scsi/for-next linus/master v5.17-rc8 next-20220315]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/John-Garry/scsi-libata-A-potential-tagging-fix-and-improvement/20220315-185159
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: arm-cns3420vb_defconfig (https://download.01.org/0day-ci/archive/20220316/202203160450.G7KPHd4L-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6b2f50fb47da3baeee10b1906da6e30ac5d26ec)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/0day-ci/linux/commit/c0fc60bbc4ec38b12bba06e9ee97cd8bd10f72ca
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review John-Garry/scsi-libata-A-potential-tagging-fix-and-improvement/20220315-185159
        git checkout c0fc60bbc4ec38b12bba06e9ee97cd8bd10f72ca
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> drivers/ata/libata-core.c:4578:34: error: too many arguments to function call, expected single argument 'ap', have 2 arguments
                   tag = ata_sas_allocate_tag(ap, scmd);
                         ~~~~~~~~~~~~~~~~~~~~     ^~~~
   drivers/ata/libata.h:99:19: note: 'ata_sas_allocate_tag' declared here
   static inline int ata_sas_allocate_tag(struct ata_port *ap)
                     ^
   1 error generated.


vim +/ap +4578 drivers/ata/libata-core.c

  4556	
  4557	/**
  4558	 *	ata_qc_new_init - Request an available ATA command, and initialize it
  4559	 *	@dev: Device from whom we request an available command structure
  4560	 *	@tag: tag
  4561	 *
  4562	 *	LOCKING:
  4563	 *	None.
  4564	 */
  4565	
  4566	struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev, struct scsi_cmnd *scmd)
  4567	{
  4568		int tag = scsi_cmd_to_rq(scmd)->tag;
  4569		struct ata_port *ap = dev->link->ap;
  4570		struct ata_queued_cmd *qc;
  4571	
  4572		/* no command while frozen */
  4573		if (unlikely(ap->pflags & ATA_PFLAG_FROZEN))
  4574			return NULL;
  4575	
  4576		/* libsas case */
  4577		if (ap->flags & ATA_FLAG_SAS_HOST) {
> 4578			tag = ata_sas_allocate_tag(ap, scmd);
  4579			if (tag < 0)
  4580				return NULL;
  4581		}
  4582	
  4583		qc = __ata_qc_from_tag(ap, tag);
  4584		qc->tag = qc->hw_tag = tag;
  4585		qc->scsicmd = NULL;
  4586		qc->ap = ap;
  4587		qc->dev = dev;
  4588	
  4589		ata_qc_reinit(qc);
  4590	
  4591		return qc;
  4592	}
  4593	

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

  reply	other threads:[~2022-03-15 20:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15 10:39 [PATCH 0/2] scsi/libata: A potential tagging fix and improvement John Garry
2022-03-15 10:39 ` [PATCH 1/2] scsi: core: Fix sbitmap depth in scsi_realloc_sdev_budget_map() John Garry
2022-03-15 14:33   ` Bart Van Assche
2022-03-15 15:11     ` John Garry
2022-03-15 14:38   ` Ming Lei
2022-03-15 10:39 ` [PATCH RFC 2/2] libata: Use scsi cmnd budget token for qc tag for SAS host John Garry
2022-03-15 20:25   ` kernel test robot [this message]
2022-03-16  3:21   ` Damien Le Moal
2022-03-16  8:23     ` John Garry
2022-03-16  8:34       ` Christoph Hellwig
2022-03-16 10:46         ` John Garry
2022-03-16 23:23           ` Damien Le Moal
2022-03-16  3:25 ` [PATCH 0/2] scsi/libata: A potential tagging fix and improvement Damien Le Moal
2022-03-16  8:15   ` John Garry

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=202203160450.G7KPHd4L-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=john.garry@huawei.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.