[ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 56/56] include/linux/fscache.h:387: undefined reference to `__fscache_resize_cookie'

From: kernel test robot
Date: Thu Jun 30 2022 - 20:09:27 EST


tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-linked-list
head: acac17cdb0f9f6db9fc03eea371e399906146f96
commit: acac17cdb0f9f6db9fc03eea371e399906146f96 [56/56] netfs: Implement truncation
config: x86_64-rhel-8.3-func (https://download.01.org/0day-ci/archive/20220701/202207010846.LBBlghEK-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/acac17cdb0f9f6db9fc03eea371e399906146f96
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-linked-list
git checkout acac17cdb0f9f6db9fc03eea371e399906146f96
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

ld: fs/netfs/truncate.o: in function `fscache_resize_cookie':
>> include/linux/fscache.h:387: undefined reference to `__fscache_resize_cookie'
ld: fs/9p/vfs_addr.o:(.rodata+0x138): undefined reference to `fscache_begin_cache_operation'


vim +387 include/linux/fscache.h

ed1235eb78a742 David Howells 2021-10-20 372
16a96bdf92d5af David Howells 2021-10-20 373 /**
16a96bdf92d5af David Howells 2021-10-20 374 * fscache_resize_cookie - Request that a cache object be resized
16a96bdf92d5af David Howells 2021-10-20 375 * @cookie: The cookie representing the cache object
16a96bdf92d5af David Howells 2021-10-20 376 * @new_size: The new size of the object (may be NULL)
16a96bdf92d5af David Howells 2021-10-20 377 *
16a96bdf92d5af David Howells 2021-10-20 378 * Request that the size of an object be changed.
16a96bdf92d5af David Howells 2021-10-20 379 *
16a96bdf92d5af David Howells 2021-10-20 380 * See Documentation/filesystems/caching/netfs-api.txt for a complete
16a96bdf92d5af David Howells 2021-10-20 381 * description.
16a96bdf92d5af David Howells 2021-10-20 382 */
16a96bdf92d5af David Howells 2021-10-20 383 static inline
16a96bdf92d5af David Howells 2021-10-20 384 void fscache_resize_cookie(struct fscache_cookie *cookie, loff_t new_size)
16a96bdf92d5af David Howells 2021-10-20 385 {
16a96bdf92d5af David Howells 2021-10-20 386 if (fscache_cookie_enabled(cookie))
16a96bdf92d5af David Howells 2021-10-20 @387 __fscache_resize_cookie(cookie, new_size);
16a96bdf92d5af David Howells 2021-10-20 388 }
16a96bdf92d5af David Howells 2021-10-20 389

:::::: The code at line 387 was first introduced by commit
:::::: 16a96bdf92d5af06f9fa6a01a4b08e2fdfed2e5b fscache: Provide a function to resize a cookie

:::::: TO: David Howells <dhowells@xxxxxxxxxx>
:::::: CC: David Howells <dhowells@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp