[xfs:xfs-4.7-writeback-bio 2/3] fs/xfs/xfs_aops.c:97:16: warning: unused variable 'blockmask'
kbuild test robot
fengguang.wu at intel.com
Tue Apr 5 22:55:32 CDT 2016
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs.git xfs-4.7-writeback-bio
head: 0e51a8e191dbd9b9c7b7bb0a1c28d57cd2be8e6a
commit: 37992c18bba3f578860c6448b7bae18a14e535d3 [2/3] xfs: don't release bios on completion immediately
config: i386-randconfig-x013-201614 (attached as .config)
reproduce:
git checkout 37992c18bba3f578860c6448b7bae18a14e535d3
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
fs/xfs/xfs_aops.c: In function 'xfs_finish_page_writeback':
>> fs/xfs/xfs_aops.c:97:16: warning: unused variable 'blockmask' [-Wunused-variable]
unsigned int blockmask = (1 << inode->i_blkbits) - 1;
^
vim +/blockmask +97 fs/xfs/xfs_aops.c
81 return mp->m_rtdev_targp->bt_bdev;
82 else
83 return mp->m_ddev_targp->bt_bdev;
84 }
85
86 /*
87 * We're now finished for good with this page. Update the page state via the
88 * associated buffer_heads, paying attention to the start and end offsets that
89 * we need to process on the page.
90 */
91 static void
92 xfs_finish_page_writeback(
93 struct inode *inode,
94 struct bio_vec *bvec,
95 int error)
96 {
> 97 unsigned int blockmask = (1 << inode->i_blkbits) - 1;
98 unsigned int end = bvec->bv_offset + bvec->bv_len - 1;
99 struct buffer_head *head, *bh;
100 unsigned int off = 0;
101
102 ASSERT(bvec->bv_offset < PAGE_SIZE);
103 ASSERT((bvec->bv_offset & blockmask) == 0);
104 ASSERT(end < PAGE_SIZE);
105 ASSERT((bvec->bv_len & blockmask) == 0);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 24805 bytes
Desc: not available
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20160406/b7eba498/attachment-0001.obj>
More information about the xfs
mailing list