From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1023995208329440686==" MIME-Version: 1.0 From: Ming Lei To: kbuild-all@lists.01.org Subject: Re: [block:block-5.9 41/41] net/sunrpc/xprtsock.c:392:9: sparse: sparse: incompatible types in conditional expression (different base types): Date: Thu, 03 Sep 2020 09:11:14 +0800 Message-ID: <20200903011114.GD638071@T590> In-Reply-To: <202009030441.gMnEeCqJ%lkp@intel.com> List-Id: --===============1023995208329440686== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Sep 03, 2020 at 04:51:44AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block= .git block-5.9 > head: fc703681a3cfa4178fb69ee6a90feb2ffb250e5f > commit: fc703681a3cfa4178fb69ee6a90feb2ffb250e5f [41/41] block: allow for= _each_bvec to support zero len bvec > config: powerpc64-randconfig-s032-20200902 (attached as .config) > compiler: powerpc64-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.2-191-g10164920-dirty > git checkout fc703681a3cfa4178fb69ee6a90feb2ffb250e5f > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-9.3.0 make.cros= s C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=3Dpowerpc64 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > = > sparse warnings: (new ones prefixed by >>) > = > >> net/sunrpc/xprtsock.c:392:9: sparse: sparse: incompatible types in con= ditional expression (different base types): > >> net/sunrpc/xprtsock.c:392:9: sparse: bool > >> net/sunrpc/xprtsock.c:392:9: sparse: void > -- > >> net/sunrpc/svcsock.c:236:9: sparse: sparse: incompatible types in cond= itional expression (different base types): > >> net/sunrpc/svcsock.c:236:9: sparse: bool > >> net/sunrpc/svcsock.c:236:9: sparse: void The above sparse warning can be killed by the following delta patch, and it isn't a problem actually: diff --git a/include/linux/bvec.h b/include/linux/bvec.h index 9c4fab5f22a7..dd74503f7e5e 100644 --- a/include/linux/bvec.h +++ b/include/linux/bvec.h @@ -127,7 +127,7 @@ static inline void bvec_iter_skip_zero_bvec(struct bvec= _iter *iter) for (iter =3D (start); \ (iter).bi_size && \ ((bvl =3D bvec_iter_bvec((bio_vec), (iter))), 1); \ - (bvl).bv_len ? bvec_iter_advance((bio_vec), &(iter), \ + (bvl).bv_len ? (void)bvec_iter_advance((bio_vec), &(iter), \ (bvl).bv_len) : bvec_iter_skip_zero_bvec(&(iter))) Jens, do you need me to post a new version with above change? Thanks, = Ming --===============1023995208329440686==--