* [rgushchin:cgwb.6 3/7] fs/fs-writeback.c:270:6: warning: no previous prototype for 'inode_cgwb_move_to_attached'
@ 2021-05-28 0:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-28 0:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3446 bytes --]
tree: https://github.com/rgushchin/linux.git cgwb.6
head: 5f789741798a3b19bd28a558def7cbe6bde9842a
commit: 9ef2177a5d2b49dedf1fa2dda32f8235b6939880 [3/7] fix for 1
config: openrisc-randconfig-r015-20210526 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/rgushchin/linux/commit/9ef2177a5d2b49dedf1fa2dda32f8235b6939880
git remote add rgushchin https://github.com/rgushchin/linux.git
git fetch --no-tags rgushchin cgwb.6
git checkout 9ef2177a5d2b49dedf1fa2dda32f8235b6939880
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/fs-writeback.c:270:6: warning: no previous prototype for 'inode_cgwb_move_to_attached' [-Wmissing-prototypes]
270 | void inode_cgwb_move_to_attached(struct inode *inode, struct bdi_writeback *wb)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/inode_cgwb_move_to_attached +270 fs/fs-writeback.c
21c6321fbb3a378 Tejun Heo 2015-05-28 261
3f28da6584d53a3 Roman Gushchin 2021-05-25 262 /**
3f28da6584d53a3 Roman Gushchin 2021-05-25 263 * inode_cgwb_move_to_attached - put the inode onto wb->b_attached list
3f28da6584d53a3 Roman Gushchin 2021-05-25 264 * @inode: inode of interest with i_lock held
3f28da6584d53a3 Roman Gushchin 2021-05-25 265 * @wb: target bdi_writeback
3f28da6584d53a3 Roman Gushchin 2021-05-25 266 *
3f28da6584d53a3 Roman Gushchin 2021-05-25 267 * Remove the inode from wb's io lists and if necessarily put onto b_attached
3f28da6584d53a3 Roman Gushchin 2021-05-25 268 * list. Only inodes attached to cgwb's are kept on this list.
3f28da6584d53a3 Roman Gushchin 2021-05-25 269 */
3f28da6584d53a3 Roman Gushchin 2021-05-25 @270 void inode_cgwb_move_to_attached(struct inode *inode, struct bdi_writeback *wb)
3f28da6584d53a3 Roman Gushchin 2021-05-25 271 {
3f28da6584d53a3 Roman Gushchin 2021-05-25 272 assert_spin_locked(&wb->list_lock);
3f28da6584d53a3 Roman Gushchin 2021-05-25 273 assert_spin_locked(&inode->i_lock);
3f28da6584d53a3 Roman Gushchin 2021-05-25 274
9ef2177a5d2b49d Roman Gushchin 2021-05-27 275 inode->i_state &= ~I_SYNC_QUEUED;
3f28da6584d53a3 Roman Gushchin 2021-05-25 276 if (wb != &wb->bdi->wb)
3f28da6584d53a3 Roman Gushchin 2021-05-25 277 list_move(&inode->i_io_list, &wb->b_attached);
3f28da6584d53a3 Roman Gushchin 2021-05-25 278 else
3f28da6584d53a3 Roman Gushchin 2021-05-25 279 list_del_init(&inode->i_io_list);
9ef2177a5d2b49d Roman Gushchin 2021-05-27 280 wb_io_lists_depopulated(wb);
3f28da6584d53a3 Roman Gushchin 2021-05-25 281 }
3f28da6584d53a3 Roman Gushchin 2021-05-25 282
:::::: The code at line 270 was first introduced by commit
:::::: 3f28da6584d53a3d8e9bb4ec76ef4ad06593425b writeback, cgroup: keep list of inodes attached to bdi_writeback
:::::: TO: Roman Gushchin <guro@fb.com>
:::::: CC: Roman Gushchin <guro@fb.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27910 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-28 0:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-28 0:40 [rgushchin:cgwb.6 3/7] fs/fs-writeback.c:270:6: warning: no previous prototype for 'inode_cgwb_move_to_attached' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.