From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8260609404115188884==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [djwong-xfs:scrub-rtsummary 43/43] fs/xfs/scrub/rtsummary.c:199:45: sparse: sparse: Using plain integer as NULL pointer Date: Wed, 25 Mar 2020 23:11:56 +0800 Message-ID: <202003252343.6qB4ixps%lkp@intel.com> List-Id: --===============8260609404115188884== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.gi= t scrub-rtsummary head: 2e7ef2860bfce11463cddefdb4fddc674825d445 commit: 2e7ef2860bfce11463cddefdb4fddc674825d445 [43/43] xfs: implement onl= ine scrubbing of rtsummary info reproduce: # apt-get install sparse # sparse version: v0.6.1-187-gbff9b106-dirty git checkout 2e7ef2860bfce11463cddefdb4fddc674825d445 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 >>) >> fs/xfs/scrub/rtsummary.c:199:45: sparse: sparse: Using plain integer as = NULL pointer vim +199 fs/xfs/scrub/rtsummary.c 189 = 190 /* 191 * Compute the realtime summary from the realtime bitmap. This is a= kernel 192 * port of the defunct process_rtbitmap function in xfs_repair. 193 */ 194 STATIC int 195 xchk_rtsum_compute( 196 struct xfs_scrub *sc, 197 struct file *sumfile) 198 { > 199 struct xchk_rtsum_compute state =3D { 0 } ; 200 struct xfs_mount *mp =3D sc->mp; 201 unsigned long long rtbmp_bytes; 202 xfs_fileoff_t off =3D 0; 203 xfs_fileoff_t end_off; 204 int error; 205 = 206 state.sumfile =3D sumfile; 207 rtbmp_bytes =3D howmany(mp->m_sb.sb_rextents, NBBY); 208 end_off =3D howmany(rtbmp_bytes, mp->m_sb.sb_blocksize); 209 = 210 /* If the bitmap size doesn't match the computed size, bail. */ 211 if (roundup(rtbmp_bytes, mp->m_sb.sb_blocksize) !=3D 212 mp->m_rbmip->i_d.di_size) 213 return -EFSCORRUPTED; 214 = 215 for (off =3D 0; off < end_off; off++) { 216 error =3D xchk_rtsum_process_bmblock(sc, off, &state); 217 if (error) 218 return error; 219 if (state.rt_extent_nr =3D=3D mp->m_sb.sb_rextents) 220 break; 221 } 222 if (state.in_extent) { 223 error =3D xchk_rtsum_record_free(sc, &state); 224 if (error) 225 return error; 226 } 227 = 228 return 0; 229 } 230 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8260609404115188884==--