Content-Type: multipart/mixed; boundary="===============7492873917164998232==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 4/7] octeontx2-af: Optimize data retrieval from firmware Date: Tue, 03 Mar 2020 09:20:58 +0800 Message-ID: <202003030921.xT3PSon4%lkp@intel.com> In-Reply-To: <1583133568-5674-5-git-send-email-sunil.kovvuri@gmail.com> List-Id: --===============7492873917164998232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20200228] [cannot apply to linus/master ipvs/master sparc-next/master v5.6-rc4 v5.6-r= c3 v5.6-rc2 v5.6-rc4] [if your patch is applied to the wrong git tree, please drop us a note to h= elp improve the system. BTW, we also suggest to use '--base' option to specify = the base tree in git format-patch, please see https://stackoverflow.com/a/37406= 982] url: https://github.com/0day-ci/linux/commits/sunil-kovvuri-gmail-com/oc= teontx2-Flow-control-support-and-other-misc-changes/20200302-154733 base: 770fbb32d34e5d6298cc2be590c9d2fd6069aa17 reproduce: # apt-get install sparse # sparse version: v0.6.1-173-ge0787745-dirty make ARCH=3Dx86_64 allmodconfig make C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: sparse: = incorrect type in assignment (different address spaces) >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: expec= ted struct rvu_fwdata *fwdata >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:722:21: sparse: got v= oid [noderef] * >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: sparse: = incorrect type in argument 1 (different address spaces) >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: expec= ted void volatile [noderef] *addr >> drivers/net/ethernet/marvell/octeontx2/af/rvu.c:728:28: sparse: got s= truct rvu_fwdata *fwdata drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: sparse: = incorrect type in argument 1 (different address spaces) drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: expec= ted void volatile [noderef] *addr drivers/net/ethernet/marvell/octeontx2/af/rvu.c:741:28: sparse: got s= truct rvu_fwdata *fwdata vim +722 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 712 = 713 static int rvu_fwdata_init(struct rvu *rvu) 714 { 715 u64 fwdbase; 716 int err; 717 = 718 /* Get firmware data base address */ 719 err =3D cgx_get_fwdata_base(&fwdbase); 720 if (err) 721 goto fail; > 722 rvu->fwdata =3D ioremap_wc(fwdbase, sizeof(struct rvu_fwdata)); 723 if (!rvu->fwdata) 724 goto fail; 725 if (!is_rvu_fwdata_valid(rvu)) { 726 dev_err(rvu->dev, 727 "Mismatch in 'fwdata' struct btw kernel and firmware\n"); > 728 iounmap(rvu->fwdata); 729 rvu->fwdata =3D NULL; 730 return -EINVAL; 731 } 732 return 0; 733 fail: 734 dev_info(rvu->dev, "Unable to fetch 'fwdata' from firmware\n"); 735 return -EIO; 736 } 737 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7492873917164998232==--