Hi Ming, [auto build test WARNING on linus/master] [also build test WARNING on v4.13-rc4 next-20170810] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ming-Lei/block-support-multipage-bvec/20170810-110521 config: x86_64-randconfig-b0-08112217 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): fs/btrfs/raid56.c: In function 'find_logical_bio_stripe': >> fs/btrfs/raid56.c:1368: warning: unused variable 'bia' vim +/bia +1368 fs/btrfs/raid56.c 1356 1357 /* 1358 * helper to find the stripe number for a given 1359 * bio (before mapping). Used to figure out which stripe has 1360 * failed. This looks up based on logical block numbers. 1361 */ 1362 static int find_logical_bio_stripe(struct btrfs_raid_bio *rbio, 1363 struct bio *bio) 1364 { 1365 u64 logical = bio->bi_iter.bi_sector; 1366 u64 stripe_start; 1367 int i; > 1368 struct bvec_iter_all bia; 1369 1370 logical <<= 9; 1371 1372 for (i = 0; i < rbio->nr_data; i++) { 1373 stripe_start = rbio->bbio->raid_map[i]; 1374 if (logical >= stripe_start && 1375 logical < stripe_start + rbio->stripe_len) { 1376 return i; 1377 } 1378 } 1379 return -1; 1380 } 1381 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip