From: kernel test robot <lkp@intel.com>
To: Bob Pearson <rpearsonhpe@gmail.com>,
jgg@nvidia.com, zyjzyj2000@gmail.com, linux-rdma@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Bob Pearson <rpearsonhpe@gmail.com>
Subject: Re: [PATCH for-next v2 4/4] RDMA/rxe: Add error messages
Date: Sat, 25 Feb 2023 01:06:50 +0800 [thread overview]
Message-ID: <202302250056.mgmG5a52-lkp@intel.com> (raw)
In-Reply-To: <20230224032916.151490-5-rpearsonhpe@gmail.com>
Hi Bob,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 66fb1d5df6ace316a4a6e2c31e13fc123ea2b644]
url: https://github.com/intel-lab-lkp/linux/commits/Bob-Pearson/RDMA-rxe-Replace-exists-by-rxe-in-rxe-c/20230224-113206
base: 66fb1d5df6ace316a4a6e2c31e13fc123ea2b644
patch link: https://lore.kernel.org/r/20230224032916.151490-5-rpearsonhpe%40gmail.com
patch subject: [PATCH for-next v2 4/4] RDMA/rxe: Add error messages
config: arm-randconfig-r004-20230222 (https://download.01.org/0day-ci/archive/20230225/202302250056.mgmG5a52-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
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/intel-lab-lkp/linux/commit/39493983f5f2a6f4c7d19ba3b28e2e0537a42247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Bob-Pearson/RDMA-rxe-Replace-exists-by-rxe-in-rxe-c/20230224-113206
git checkout 39493983f5f2a6f4c7d19ba3b28e2e0537a42247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/infiniband/sw/rxe/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302250056.mgmG5a52-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/infiniband/sw/rxe/rxe_verbs.c:600:13: warning: variable 'err' is uninitialized when used here [-Wuninitialized]
mask, err);
^~~
drivers/infiniband/sw/rxe/rxe.h:53:51: note: expanded from macro 'rxe_dbg_qp'
"qp#%d %s: " fmt, (qp)->elem.index, __func__, ##__VA_ARGS__)
^~~~~~~~~~~
drivers/infiniband/sw/rxe/rxe_verbs.c:596:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
1 warning generated.
vim +/err +600 drivers/infiniband/sw/rxe/rxe_verbs.c
590
591 static int rxe_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
592 int mask, struct ib_udata *udata)
593 {
594 struct rxe_dev *rxe = to_rdev(ibqp->device);
595 struct rxe_qp *qp = to_rqp(ibqp);
596 int err;
597
598 if (mask & ~IB_QP_ATTR_STANDARD_BITS) {
599 rxe_dbg_qp(qp, "unsupported mask = 0x%x, err = %d",
> 600 mask, err);
601 err = -EOPNOTSUPP;
602 goto err_out;
603 }
604
605 err = rxe_qp_chk_attr(rxe, qp, attr, mask);
606 if (err) {
607 rxe_dbg_qp(qp, "bad mask/attr, err = %d", err);
608 goto err_out;
609 }
610
611 err = rxe_qp_from_attr(qp, attr, mask, udata);
612 if (err) {
613 rxe_dbg_qp(qp, "modify qp failed, err = %d", err);
614 goto err_out;
615 }
616
617 if ((mask & IB_QP_AV) && (attr->ah_attr.ah_flags & IB_AH_GRH))
618 qp->src_port = rdma_get_udp_sport(attr->ah_attr.grh.flow_label,
619 qp->ibqp.qp_num,
620 qp->attr.dest_qp_num);
621
622 return 0;
623
624 err_out:
625 rxe_err_qp(qp, "returned err = %d", err);
626 return err;
627 }
628
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
prev parent reply other threads:[~2023-02-24 17:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 3:29 [PATCH for-next v2 0/4] Add error logging to rxe Bob Pearson
2023-02-24 3:29 ` [PATCH for-next v2 1/4] RDMA/rxe: Replace exists by rxe in rxe.c Bob Pearson
2023-02-24 12:35 ` Jason Gunthorpe
2023-02-24 3:29 ` [PATCH for-next v2 2/4] RDMA/rxe: Change rxe_dbg to rxe_dbg_dev Bob Pearson
2023-02-24 3:29 ` [PATCH for-next v2 3/4] RDMA/rxe: Extend dbg log messages to err and info Bob Pearson
2023-02-24 3:29 ` [PATCH for-next v2 4/4] RDMA/rxe: Add error messages Bob Pearson
2023-02-24 17:06 ` kernel test robot [this message]
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=202302250056.mgmG5a52-lkp@intel.com \
--to=lkp@intel.com \
--cc=jgg@nvidia.com \
--cc=linux-rdma@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rpearsonhpe@gmail.com \
--cc=zyjzyj2000@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox