Content-Type: multipart/mixed; boundary="===============7534567835040979313==" MIME-Version: 1.0 From: Jason Gunthorpe To: kbuild-all@lists.01.org Subject: Re: [PATCHv3 for-next 05/20] RDMA/rtrs: Change MAX_SESS_QUEUE_DEPTH Date: Mon, 31 May 2021 09:17:25 -0300 Message-ID: <20210531121725.GK1096940@ziepe.ca> In-Reply-To: List-Id: --===============7534567835040979313== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2021 at 01:44:22PM +0200, Jinpu Wang wrote: > On Fri, May 28, 2021 at 6:20 PM kernel test robot wrote: > > > > Hi Jack, > > > > Thank you for the patch! Perhaps something to improve: > > > > [auto build test WARNING on rdma/for-next] > > [also build test WARNING on v5.13-rc3 next-20210528] > > [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/Jack-Wang/RTRS-update-= for-5-14/20210528-193313 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git f= or-next > > config: x86_64-randconfig-a012-20210526 (attached as .config) > > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 65= 05c630407c5feec818f0bb1c284f9eeebf2071) > > reproduce (this is a W=3D1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/s= bin/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://github.com/0day-ci/linux/commit/66f95f659060028d1f0f9= 1473ad1c16a6595fcac > > git remote add linux-review https://github.com/0day-ci/linux > > git fetch --no-tags linux-review Jack-Wang/RTRS-update-for-5-14= /20210528-193313 > > git checkout 66f95f659060028d1f0f91473ad1c16a6595fcac > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross = ARCH=3Dx86_64 > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All warnings (new ones prefixed by >>): > > > > >> drivers/infiniband/ulp/rtrs/rtrs-clt.c:1786:19: warning: result of c= omparison of constant 'MAX_SESS_QUEUE_DEPTH' (65536) with expression of typ= e 'u16' (aka 'unsigned short') is always false [-Wtautological-constant-out= -of-range-compare] > > if (queue_depth > MAX_SESS_QUEUE_DEPTH) { > > ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ > Thanks for the reporting. > = > As the check is checking against u16 max,I think we should reduce > MAX_SESS_QUEUE_DEPTH to 65535, and drop the check in line rtrs-clt: > 1786 > = > Jason, you mentioned v3 is applied in for-next, I guess I'll wait when > you push it out, and send the patch to fix this. is it ok? Send me a fix right away and I'll fix the original patch Jason --===============7534567835040979313==--