Re: [PATCH 2/2] writeback: Rework wb_[dec|inc]_stat family of functions

From: kbuild test robot
Date: Tue Jun 20 2017 - 20:06:13 EST


Hi Nikolay,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.12-rc6 next-20170620]
[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/Nikolay-Borisov/percpu_counter-Rename-__percpu_counter_add-to-percpu_counter_add_batch/20170621-045738
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=alpha

All errors (new ones prefixed by >>):

fs/fs-writeback.c: In function 'inode_switch_wbs_work_fn':
>> fs/fs-writeback.c:383:4: error: implicit declaration of function '__dec_wb_stat' [-Werror=implicit-function-declaration]
__dec_wb_stat(old_wb, WB_RECLAIMABLE);
^~~~~~~~~~~~~
>> fs/fs-writeback.c:384:4: error: implicit declaration of function '__inc_wb_stat' [-Werror=implicit-function-declaration]
__inc_wb_stat(new_wb, WB_RECLAIMABLE);
^~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/__dec_wb_stat +383 fs/fs-writeback.c

d10c8095 Tejun Heo 2015-05-28 377 */
d10c8095 Tejun Heo 2015-05-28 378 radix_tree_for_each_tagged(slot, &mapping->page_tree, &iter, 0,
d10c8095 Tejun Heo 2015-05-28 379 PAGECACHE_TAG_DIRTY) {
d10c8095 Tejun Heo 2015-05-28 380 struct page *page = radix_tree_deref_slot_protected(slot,
d10c8095 Tejun Heo 2015-05-28 381 &mapping->tree_lock);
d10c8095 Tejun Heo 2015-05-28 382 if (likely(page) && PageDirty(page)) {
d10c8095 Tejun Heo 2015-05-28 @383 __dec_wb_stat(old_wb, WB_RECLAIMABLE);
d10c8095 Tejun Heo 2015-05-28 @384 __inc_wb_stat(new_wb, WB_RECLAIMABLE);
d10c8095 Tejun Heo 2015-05-28 385 }
d10c8095 Tejun Heo 2015-05-28 386 }
d10c8095 Tejun Heo 2015-05-28 387

:::::: The code at line 383 was first introduced by commit
:::::: d10c809552659d8a0089062b9d73da6d47e84cbf writeback: implement foreign cgroup inode bdi_writeback switching

:::::: TO: Tejun Heo <tj@xxxxxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip