From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1439776994203198938==" MIME-Version: 1.0 From: Leon Romanovsky To: kbuild-all@lists.01.org Subject: Re: [leon-rdma:rdma-next 58/59] drivers/infiniband/core/uverbs_cmd.c:820:6: warning: variable 'new_mr' is used uninitialized whenever 'if' condition is true Date: Thu, 05 Nov 2020 10:22:23 +0200 Message-ID: <20201105082223.GO5429@unreal> In-Reply-To: <202011050034.V5X38pwZ-lkp@intel.com> List-Id: --===============1439776994203198938== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Nov 05, 2020 at 12:33:39AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.g= it rdma-next > head: e0a81838e0d3c558bfd2776fd6630470c4bdee0e > commit: ce258f66e947591682a30f874692a72381dbfaf0 [58/59] RDMA/uverbs: All= ow drivers to create a new HW object during rereg_mr > config: x86_64-randconfig-a003-20201104 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a6d1= 5d40701ad38f29e4ff93703b3ffa7b204611) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma= .git/commit/?id=3Dce258f66e947591682a30f874692a72381dbfaf0 > git remote add leon-rdma https://git.kernel.org/pub/scm/linux/ker= nel/git/leon/linux-rdma.git > git fetch --no-tags leon-rdma rdma-next > git checkout ce258f66e947591682a30f874692a72381dbfaf0 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross AR= CH=3Dx86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): Thanks diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core= /uverbs_cmd.c index bea1a1aeea22..cfdf89dd92b2 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -766,9 +766,9 @@ static int ib_uverbs_rereg_mr(struct uverbs_attr_bundle= *attrs) struct ib_mr *mr; int ret; struct ib_uobject *uobj; + struct ib_mr *new_mr =3D NULL; struct ib_uobject *new_uobj; struct ib_device *ib_dev; - struct ib_mr *new_mr; ret =3D uverbs_request(attrs, &cmd, sizeof(cmd)); if (ret) --===============1439776994203198938==--