* [dhowells-fs:fscache-iter 69/75] fs/fscache/io.c:335:25: warning: variable 'object' set but not used
@ 2020-11-03 18:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-03 18:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3186 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: 5493a885b6784d683ee7b4d40be8c56f3ad23939
commit: 1053796bbbf2ef3d84557d5f9c75edb96910e6d2 [69/75] netfs: Add a helper to pre-read from/to the cache in write_begin
config: c6x-randconfig-r013-20201103 (attached as .config)
compiler: c6x-elf-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://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=1053796bbbf2ef3d84557d5f9c75edb96910e6d2
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter
git checkout 1053796bbbf2ef3d84557d5f9c75edb96910e6d2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
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/fscache/io.c: In function 'fscache_write_to_cache':
>> fs/fscache/io.c:335:25: warning: variable 'object' set but not used [-Wunused-but-set-variable]
335 | struct fscache_object *object;
| ^~~~~~
vim +/object +335 fs/fscache/io.c
304
305 /**
306 * fscache_write_to_cache - Save a write to the cache and clear PG_fscache
307 * @cookie: The cookie representing the cache object
308 * @mapping: The netfs inode to use as the source
309 * @start: The start position in @mapping
310 * @len: The amount of data to write back
311 * @i_size: The new size of the inode
312 * @term_func: The function to call upon completion
313 * @term_func_priv: The private data for @term_func
314 *
315 * Helper function for a netfs to write dirty data from an inode into the cache
316 * object that's backing it.
317 *
318 * @start and @len describe the range of the data. This does not need to be
319 * page-aligned, but to satisfy DIO requirements, the cache may expand it up to
320 * the page boundaries on either end. All the pages covering the range must be
321 * marked with PG_fscache.
322 *
323 * If given, @term_func will be called upon completion and supplied with
324 * @term_func_priv. Note that the PG_fscache flags will have been cleared by
325 * this point, so the netfs must retain its own pin on the mapping.
326 */
327 void fscache_write_to_cache(struct fscache_cookie *cookie,
328 struct address_space *mapping,
329 loff_t start, size_t len, loff_t i_size,
330 fscache_io_terminated_t term_func,
331 void *term_func_priv)
332 {
333 struct fscache_write_request *wreq;
334 struct fscache_op_resources *opr;
> 335 struct fscache_object *object;
---
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: 26468 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-03 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-03 18:40 [dhowells-fs:fscache-iter 69/75] fs/fscache/io.c:335:25: warning: variable 'object' set but not used 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.