From: kernel test robot <lkp@intel.com>
To: Muneendra <muneendra.kumar@broadcom.com>,
linux-block@vger.kernel.org, linux-scsi@vger.kernel.org,
tj@kernel.org, linux-nvme@lists.infradead.org, hare@suse.de
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com,
pbonzini@redhat.com,
Gaurav Srivastava <gaurav.srivastava@broadcom.com>
Subject: Re: [PATCH v5 09/16] lpfc: vmid: Implements ELS commands for appid patch
Date: Sun, 20 Dec 2020 02:04:41 +0800 [thread overview]
Message-ID: <202012200200.k3o6ajNh-lkp@intel.com> (raw)
In-Reply-To: <1608096586-21656-10-git-send-email-muneendra.kumar@broadcom.com>
[-- Attachment #1: Type: text/plain, Size: 8208 bytes --]
Hi Muneendra,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on scsi/for-next]
[also build test WARNING on mkp-scsi/for-next next-20201218]
[cannot apply to cgroup/for-next v5.10]
[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/Muneendra/blkcg-Support-to-track-FC-storage-blk-io-traffic/20201216-202913
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: powerpc64-randconfig-r023-20201217 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/65751f65f5df79aaa25cd5752589ca91ebddde18
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Muneendra/blkcg-Support-to-track-FC-storage-blk-io-traffic/20201216-202913
git checkout 65751f65f5df79aaa25cd5752589ca91ebddde18
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/lpfc/lpfc_els.c:10354:6: warning: no previous prototype for function 'lpfc_init_cs_ctl_bitmap' [-Wmissing-prototypes]
void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport)
^
drivers/scsi/lpfc/lpfc_els.c:10354:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport)
^
static
>> drivers/scsi/lpfc/lpfc_els.c:10360:1: warning: no previous prototype for function 'lpfc_vmid_set_cs_ctl_range' [-Wmissing-prototypes]
lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max)
^
drivers/scsi/lpfc/lpfc_els.c:10359:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> drivers/scsi/lpfc/lpfc_els.c:10371:6: warning: no previous prototype for function 'lpfc_vmid_put_cs_ctl' [-Wmissing-prototypes]
void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid)
^
drivers/scsi/lpfc/lpfc_els.c:10371:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid)
^
static
>> drivers/scsi/lpfc/lpfc_els.c:10408:6: warning: variable 'ndlp' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (!prsp)
^~~~~
drivers/scsi/lpfc/lpfc_els.c:10482:15: note: uninitialized use occurs here
lpfc_nlp_put(ndlp);
^~~~
drivers/scsi/lpfc/lpfc_els.c:10408:2: note: remove the 'if' if its condition is always false
if (!prsp)
^~~~~~~~~~
drivers/scsi/lpfc/lpfc_els.c:10405:28: note: initialize the variable 'ndlp' to silence this warning
struct lpfc_nodelist *ndlp;
^
= NULL
4 warnings generated.
vim +/lpfc_init_cs_ctl_bitmap +10354 drivers/scsi/lpfc/lpfc_els.c
10353
10354 void lpfc_init_cs_ctl_bitmap(struct lpfc_vport *vport)
10355 {
10356 bitmap_zero(vport->vmid_priority_range, LPFC_VMID_MAX_PRIORITY_RANGE);
10357 }
10358
10359 void
10360 lpfc_vmid_set_cs_ctl_range(struct lpfc_vport *vport, u32 min, u32 max)
10361 {
10362 u32 i;
10363
10364 if ((min > max) || (max > LPFC_VMID_MAX_PRIORITY_RANGE))
10365 return;
10366
10367 for (i = min; i <= max; i++)
10368 set_bit(i, vport->vmid_priority_range);
10369 }
10370
10371 void lpfc_vmid_put_cs_ctl(struct lpfc_vport *vport, u32 ctcl_vmid)
10372 {
10373 set_bit(ctcl_vmid, vport->vmid_priority_range);
10374 }
10375
10376 u32 lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport)
10377 {
10378 u32 i;
10379
10380 i = find_first_bit(vport->vmid_priority_range,
10381 LPFC_VMID_MAX_PRIORITY_RANGE);
10382
10383 if (i == LPFC_VMID_MAX_PRIORITY_RANGE)
10384 return 0;
10385
10386 clear_bit(i, vport->vmid_priority_range);
10387 return i;
10388 }
10389
10390 #define MAX_PRIORITY_DESC 255
10391
10392 static void
10393 lpfc_cmpl_els_qfpa(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
10394 struct lpfc_iocbq *rspiocb)
10395 {
10396 struct lpfc_vport *vport = cmdiocb->vport;
10397 struct priority_range_desc *desc;
10398 struct lpfc_dmabuf *prsp = NULL;
10399 struct lpfc_vmid_priority_range *vmid_range = NULL;
10400 u32 *data;
10401 struct lpfc_dmabuf *dmabuf = cmdiocb->context2;
10402 IOCB_t *irsp = &rspiocb->iocb;
10403 u8 *pcmd;
10404 u32 len, i;
10405 struct lpfc_nodelist *ndlp;
10406
10407 prsp = list_get_first(&dmabuf->list, struct lpfc_dmabuf, list);
10408 if (!prsp)
10409 goto out;
10410
10411 ndlp = (struct lpfc_nodelist *) cmdiocb->context1;
10412 pcmd = prsp->virt;
10413 data = (u32 *)pcmd;
10414 if (data[0] == ELS_CMD_LS_RJT) {
10415 lpfc_printf_vlog(vport, KERN_WARNING, LOG_SLI,
10416 "6528 QFPA LS_RJT %x %x ", data[0], data[1]);
10417 goto out;
10418 }
10419 if (irsp->ulpStatus) {
10420 lpfc_printf_vlog(vport, KERN_ERR, LOG_SLI,
10421 "6529 QFPA failed with status %x %x ",
10422 irsp->ulpStatus, irsp->un.ulpWord[4]);
10423 goto out;
10424 }
10425
10426 if (!vport->qfpa_res) {
10427 vport->qfpa_res = kmalloc(FCELSSIZE, GFP_KERNEL);
10428 if (!vport->qfpa_res)
10429 goto out;
10430 memset(vport->qfpa_res, 0, FCELSSIZE);
10431 }
10432
10433 len = *((u32 *)(pcmd + 4));
10434 len = be32_to_cpu(len);
10435 memcpy(vport->qfpa_res, pcmd, len + 8);
10436 len = len / LPFC_PRIORITY_RANGE_DESC_SIZE;
10437
10438 desc = (struct priority_range_desc *)(pcmd + 8);
10439 vmid_range = vport->vmid_priority.vmid_range;
10440 if (!vmid_range) {
10441 vmid_range = kmalloc_array(MAX_PRIORITY_DESC,
10442 sizeof
10443 (struct lpfc_vmid_priority_range),
10444 GFP_KERNEL);
10445 if (!vmid_range)
10446 goto out;
10447 memset(vmid_range, 0, MAX_PRIORITY_DESC *
10448 sizeof(struct lpfc_vmid_priority_range));
10449 vport->vmid_priority.vmid_range = vmid_range;
10450 }
10451 vport->vmid_priority.num_descriptors = len;
10452
10453 for (i = 0; i < len; i++, vmid_range++, desc++) {
10454 lpfc_printf_vlog(vport, KERN_DEBUG, LOG_ELS,
10455 "6539 vmid values low=%d, high=%d, qos=%d,\n"
10456 " local ve id=%d\n", desc->lo_range,
10457 desc->hi_range, desc->qos_priority,
10458 desc->local_ve_id);
10459
10460 vmid_range->low = desc->lo_range << 1;
10461 if (desc->local_ve_id == QFPA_ODD_ONLY)
10462 vmid_range->low++;
10463 if (desc->qos_priority)
10464 vport->vmid_flag |= LPFC_VMID_QOS_ENABLED;
10465 vmid_range->qos = desc->qos_priority;
10466
10467 vmid_range->high = desc->hi_range << 1;
10468 if ((desc->local_ve_id == QFPA_ODD_ONLY) ||
10469 (desc->local_ve_id == QFPA_EVEN_ODD))
10470 vmid_range->high++;
10471 }
10472 lpfc_init_cs_ctl_bitmap(vport);
10473 for (i = 0; i < vport->vmid_priority.num_descriptors; i++) {
10474 lpfc_vmid_set_cs_ctl_range(vport,
10475 vport->vmid_priority.vmid_range[i].low,
10476 vport->vmid_priority.vmid_range[i].high);
10477 }
10478
10479 vport->vmid_flag |= LPFC_VMID_QFPA_CMPL;
10480 out:
10481 lpfc_els_free_iocb(phba, cmdiocb);
10482 lpfc_nlp_put(ndlp);
10483 }
10484
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31312 bytes --]
next prev parent reply other threads:[~2020-12-19 18:05 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-16 5:29 [PATCH v5 00/16] blkcg:Support to track FC storage blk io traffic Muneendra
2020-12-16 5:29 ` [PATCH v5 01/16] cgroup: Added cgroup_get_from_id Muneendra
2020-12-16 5:29 ` [PATCH v5 02/16] blkcg: Added a app identifier support for blkcg Muneendra
2020-12-19 17:12 ` Randy Dunlap
2020-12-22 6:02 ` Muneendra Kumar M
2020-12-16 5:29 ` [PATCH v5 03/16] nvme: Added a newsysfs attribute appid_store Muneendra
2020-12-16 5:29 ` [PATCH v5 04/16] lpfc: vmid: Add the datastructure for supporting VMID in lpfc Muneendra
2020-12-16 5:29 ` [PATCH v5 05/16] lpfc: vmid: Supplementary data structures for vmid and APIs Muneendra
2020-12-16 5:29 ` [PATCH v5 06/16] lpfc: vmid: Forward declarations for APIs Muneendra
2020-12-16 5:29 ` [PATCH v5 07/16] lpfc: vmid: VMID params initialization Muneendra
2020-12-16 5:29 ` [PATCH v5 08/16] lpfc: vmid: Add support for vmid in mailbox command, does vmid resource allocation and vmid cleanup Muneendra
2020-12-16 15:13 ` kernel test robot
2020-12-19 15:58 ` kernel test robot
2020-12-16 5:29 ` [PATCH v5 09/16] lpfc: vmid: Implements ELS commands for appid patch Muneendra
2020-12-16 15:47 ` kernel test robot
2020-12-19 18:04 ` kernel test robot [this message]
2020-12-16 5:29 ` [PATCH v5 10/16] lpfc: vmid: Functions to manage vmids Muneendra
2020-12-16 16:23 ` kernel test robot
2020-12-19 20:20 ` kernel test robot
2020-12-16 5:29 ` [PATCH v5 11/16] lpfc: vmid: Implements CT commands for appid Muneendra
2020-12-16 16:57 ` kernel test robot
2020-12-19 23:27 ` kernel test robot
2020-12-16 5:29 ` [PATCH v5 12/16] lpfc: vmid: Appends the vmid in the wqe before sending Muneendra
2020-12-16 5:29 ` [PATCH v5 13/16] lpfc: vmid: Timeout implementation for vmid Muneendra
2020-12-16 17:51 ` kernel test robot
2020-12-16 5:29 ` [PATCH v5 14/16] lpfc: vmid: Adding qfpa and vmid timeout check in worker thread Muneendra
2020-12-16 18:31 ` kernel test robot
2020-12-16 5:29 ` [PATCH v5 15/16] lpfc: vmid: Introducing vmid in io path Muneendra
2020-12-16 5:29 ` [PATCH v5 16/16] scsi: Made changes in Kconfig to select BLK_CGROUP_FC_APPID Muneendra
2020-12-19 17:15 ` Randy Dunlap
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=202012200200.k3o6ajNh-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=emilne@redhat.com \
--cc=gaurav.srivastava@broadcom.com \
--cc=hare@suse.de \
--cc=jsmart2021@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mkumar@redhat.com \
--cc=muneendra.kumar@broadcom.com \
--cc=pbonzini@redhat.com \
--cc=tj@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).