[jlayton:ceph-fscache-rewrite-indexing 2/6] fs/cachefiles/io.c:214:41: error: 'fscache_n_b_writing' undeclared; did you mean 'fscache_write'?
From: kernel test robot
Date: Mon Nov 01 2021 - 15:37:58 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscache-rewrite-indexing
head: 54d8f4ec911e13051881c8e23628e33054132f41
commit: bbe759e67e26ecc0d2667072d7dafaaa1caf38e2 [2/6] cachefiles: Fix space check to allow for I/O writes
config: arc-buildonly-randconfig-r006-20211101 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=bbe759e67e26ecc0d2667072d7dafaaa1caf38e2
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-fscache-rewrite-indexing
git checkout bbe759e67e26ecc0d2667072d7dafaaa1caf38e2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash fs/cachefiles/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
fs/cachefiles/io.c: In function 'cachefiles_write_complete':
>> fs/cachefiles/io.c:214:41: error: 'fscache_n_b_writing' undeclared (first use in this function); did you mean 'fscache_write'?
214 | atomic_long_sub(ki->b_writing, &fscache_n_b_writing);
| ^~~~~~~~~~~~~~~~~~~
| fscache_write
fs/cachefiles/io.c:214:41: note: each undeclared identifier is reported only once for each function it appears in
fs/cachefiles/io.c: In function 'cachefiles_write':
fs/cachefiles/io.c:273:41: error: 'fscache_n_b_writing' undeclared (first use in this function); did you mean 'fscache_write'?
273 | atomic_long_add(ki->b_writing, &fscache_n_b_writing);
| ^~~~~~~~~~~~~~~~~~~
| fscache_write
vim +214 fs/cachefiles/io.c
193
194 /*
195 * Handle completion of a write to the cache.
196 */
197 static void cachefiles_write_complete(struct kiocb *iocb, long ret, long ret2)
198 {
199 struct cachefiles_kiocb *ki = container_of(iocb, struct cachefiles_kiocb, iocb);
200 struct cachefiles_object *object = ki->object;
201 struct inode *inode = file_inode(ki->iocb.ki_filp);
202
203 _enter("%ld,%ld", ret, ret2);
204
205 /* Tell lockdep we inherited freeze protection from submission thread */
206 __sb_writers_acquired(inode->i_sb, SB_FREEZE_WRITE);
207 __sb_end_write(inode->i_sb, SB_FREEZE_WRITE);
208
209 if (ret < 0)
210 trace_cachefiles_io_error(object, inode, ret,
211 cachefiles_trace_write_error);
212
213 atomic_long_sub(ki->b_writing, &object->volume->cache->b_writing);
> 214 atomic_long_sub(ki->b_writing, &fscache_n_b_writing);
215 set_bit(FSCACHE_COOKIE_HAVE_DATA, &object->cookie->flags);
216 if (ki->term_func)
217 ki->term_func(ki->term_func_priv, ret, ki->was_async);
218 cachefiles_put_kiocb(ki);
219 }
220
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip