All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, zhanglei <zhanglei48@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 7031/7157] drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: expecting prototype for hiraid_create_cq(). Prototype was for hiraid_create_complete_queue() instead
Date: Sat, 30 Mar 2024 17:59:35 +0800	[thread overview]
Message-ID: <202403301744.3A4FOOJB-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   398d837363b6cac5548eda808de1dfd5269a960a
commit: fd8c1a2ddc2f28838e4a6a8be6a7d6dc95a678d3 [7031/7157] SCSI: hisi_raid: support SPxxx serial RAID/HBA controllers
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240330/202403301744.3A4FOOJB-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 79ba323bdd0843275019e16b6e9b35133677c514)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240330/202403301744.3A4FOOJB-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403301744.3A4FOOJB-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'hdev' not described in 'hiraid_create_complete_queue'
   drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'qid' not described in 'hiraid_create_complete_queue'
   drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'hiraidq' not described in 'hiraid_create_complete_queue'
   drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: Function parameter or member 'cq_vector' not described in 'hiraid_create_complete_queue'
>> drivers/scsi/hisi_raid/hiraid_main.c:1832: warning: expecting prototype for hiraid_create_cq(). Prototype was for hiraid_create_complete_queue() instead
   drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'hdev' not described in 'hiraid_create_send_queue'
   drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'qid' not described in 'hiraid_create_send_queue'
   drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: Function parameter or member 'hiraidq' not described in 'hiraid_create_send_queue'
>> drivers/scsi/hisi_raid/hiraid_main.c:1852: warning: expecting prototype for hiraid_create_sq(). Prototype was for hiraid_create_send_queue() instead


vim +1832 drivers/scsi/hisi_raid/hiraid_main.c

  1826	
  1827	/**
  1828	 * hiraid_create_cq - send cmd to controller for create controller cq
  1829	 */
  1830	static int hiraid_create_complete_queue(struct hiraid_dev *hdev, u16 qid,
  1831							struct hiraid_queue *hiraidq, u16 cq_vector)
> 1832	{
  1833		struct hiraid_admin_command admin_cmd;
  1834		int flags = HIRAID_QUEUE_PHYS_CONTIG | HIRAID_CQ_IRQ_ENABLED;
  1835	
  1836		memset(&admin_cmd, 0, sizeof(admin_cmd));
  1837		admin_cmd.create_cq.opcode = HIRAID_ADMIN_CREATE_CQ;
  1838		admin_cmd.create_cq.prp1 = cpu_to_le64(hiraidq->cq_buffer_phy);
  1839		admin_cmd.create_cq.cqid = cpu_to_le16(qid);
  1840		admin_cmd.create_cq.qsize = cpu_to_le16(hiraidq->q_depth - 1);
  1841		admin_cmd.create_cq.cq_flags = cpu_to_le16(flags);
  1842		admin_cmd.create_cq.irq_vector = cpu_to_le16(cq_vector);
  1843	
  1844		return hiraid_put_admin_sync_request(hdev, &admin_cmd, NULL, NULL, 0);
  1845	}
  1846	
  1847	/**
  1848	 * hiraid_create_sq - send cmd to controller for create controller sq
  1849	 */
  1850	static int hiraid_create_send_queue(struct hiraid_dev *hdev, u16 qid,
  1851						struct hiraid_queue *hiraidq)
> 1852	{
  1853		struct hiraid_admin_command admin_cmd;
  1854		int flags = HIRAID_QUEUE_PHYS_CONTIG;
  1855	
  1856		memset(&admin_cmd, 0, sizeof(admin_cmd));
  1857		admin_cmd.create_sq.opcode = HIRAID_ADMIN_CREATE_SQ;
  1858		admin_cmd.create_sq.prp1 = cpu_to_le64(hiraidq->sq_buffer_phy);
  1859		admin_cmd.create_sq.sqid = cpu_to_le16(qid);
  1860		admin_cmd.create_sq.qsize = cpu_to_le16(hiraidq->q_depth - 1);
  1861		admin_cmd.create_sq.sq_flags = cpu_to_le16(flags);
  1862		admin_cmd.create_sq.cqid = cpu_to_le16(qid);
  1863	
  1864		return hiraid_put_admin_sync_request(hdev, &admin_cmd, NULL, NULL, 0);
  1865	}
  1866	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-03-30 10:00 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=202403301744.3A4FOOJB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zhanglei48@huawei.com \
    /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.