All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michal Kubiak <michal.kubiak@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Alexander Lobakin <aleksander.lobakin@intel.com>
Subject: [alobakin:idpf-libie-new 69/72] drivers/net/ethernet/intel/idpf/idpf_txrx.c:1133: warning: Excess function parameter 'mask' description in 'idpf_vector_to_queue_set'
Date: Tue, 5 Mar 2024 17:45:41 +0800	[thread overview]
Message-ID: <202403051751.27NEd8DF-lkp@intel.com> (raw)

tree:   https://github.com/alobakin/linux idpf-libie-new
head:   1f708723b6e4b829c73e2c7e6ed90804da296e16
commit: 671bb36b73c82d2c04589c82dc5d47f44e201070 [69/72] idpf: add XSk pool initialization
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20240305/202403051751.27NEd8DF-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240305/202403051751.27NEd8DF-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/202403051751.27NEd8DF-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/intel/idpf/idpf_txrx.c:1133: warning: Excess function parameter 'mask' description in 'idpf_vector_to_queue_set'


vim +1133 drivers/net/ethernet/intel/idpf/idpf_txrx.c

  1117	
  1118	/**
  1119	 * idpf_vector_to_queue_set - create a queue set associated with a given
  1120	 *			      queue vector.
  1121	 * @qv: queue vector corresponding to the queue pair
  1122	 * @mask: mask of queue types to disable (Rx, Tx, XDP)
  1123	 *
  1124	 * Returns a pointer to a dynamically allocated array of pointers to all
  1125	 * queues associated with a given queue vector (@qv).
  1126	 * Please note that the caller is responsible to free the memory allocated
  1127	 * by this function using kfree().
  1128	 *
  1129	 * Return: &idpf_queue_set on success, %NULL in case of error.
  1130	 */
  1131	static struct idpf_queue_set *
  1132	idpf_vector_to_queue_set(struct idpf_q_vector *qv)
> 1133	{
  1134		struct idpf_queue_set *qs;
  1135		u32 num;
  1136	
  1137		num = qv->num_rxq + qv->num_bufq + qv->num_txq + qv->num_complq;
  1138		if (!num)
  1139			return NULL;
  1140	
  1141		qs = idpf_alloc_queue_set(qv->vport, num);
  1142		if (!qs)
  1143			return NULL;
  1144	
  1145		num = 0;
  1146	
  1147		for (u32 i = 0; i < qv->num_bufq; i++) {
  1148			qs->qs[num].type = VIRTCHNL2_QUEUE_TYPE_RX_BUFFER;
  1149			qs->qs[num++].bufq = qv->bufq[i];
  1150		}
  1151	
  1152		for (u32 i = 0; i < qv->num_rxq; i++) {
  1153			qs->qs[num].type = VIRTCHNL2_QUEUE_TYPE_RX;
  1154			qs->qs[num++].rxq = qv->rx[i];
  1155		}
  1156	
  1157		for (u32 i = 0; i < qv->num_txq; i++) {
  1158			qs->qs[num].type = VIRTCHNL2_QUEUE_TYPE_TX;
  1159			qs->qs[num++].txq = qv->tx[i];
  1160		}
  1161	
  1162		for (u32 i = 0; i < qv->num_complq; i++) {
  1163			qs->qs[num].type = VIRTCHNL2_QUEUE_TYPE_TX_COMPLETION;
  1164			qs->qs[num++].complq = qv->complq[i];
  1165		}
  1166	
  1167		if (num != qs->num) {
  1168			kfree(qs);
  1169			return NULL;
  1170		}
  1171	
  1172		return qs;
  1173	}
  1174	

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

                 reply	other threads:[~2024-03-05  9:46 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=202403051751.27NEd8DF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aleksander.lobakin@intel.com \
    --cc=michal.kubiak@intel.com \
    --cc=oe-kbuild-all@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.