tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
ceph-fscache-iter
head: 3e988e691f03e14d299a34cc55ee7f0e6a780a5d
commit: 7667a7ac7f50d005470206a0f18928747edffb63 [66/76] fscache: Handle readpages always
getting contig pages and simplify
config: c6x-randconfig-r033-20200526 (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
git checkout 7667a7ac7f50d005470206a0f18928747edffb63
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
fs/fscache/read_helper.c: In function 'fscache_read_helper':
> fs/fscache/read_helper.c:278:30: warning: variable
'trailer' set but not used [-Wunused-but-set-variable]
278 | pgoff_t eof,
cursor, start, trailer = ULONG_MAX;
| ^~~~~~~
vim +/trailer +278 fs/fscache/read_helper.c
240
241 /**
242 * fscache_read_helper - Helper to manage a read request
243 * @req: The initialised request structure to use
244 * @requested_page: Singular page to include (LOCKED_PAGE/FOR_WRITE)
245 * @pages: Unattached pages to include (PAGE_LIST)
246 * @primary_index: The index of the primary page (FOR_WRITE)
247 * @max_pages: The maximum number of pages to read in one transaction
248 * @type: FSCACHE_READ_*
249 * @aop_flags: AOP_FLAG_*
250 *
251 * Read a sequence of pages appropriately sized for an fscache allocation
252 * block. Pages are added at both ends and to fill in the gaps as appropriate
253 * to make it the right size.
254 *
255 * req->mapping should indicate the mapping to which the pages will be
attached.
256 *
257 * The operations pointed to by req->ops will be used to issue or reissue a
258 * read against the server in case the cache is unavailable, incomplete or
259 * generates an error. req->iter will be set up to point to the iterator
260 * representing the buffer to be filled in.
261 *
262 * A ref on @req is consumed eventually by this function or one of its
263 * eventually-dispatched callees.
264 */
265 int fscache_read_helper(struct fscache_io_request *req,
266 struct page **requested_page,
267 struct list_head *pages,
268 pgoff_t primary_index,
269 pgoff_t max_pages,
270 enum fscache_read_type type,
271 unsigned int aop_flags)
272 {
273 struct fscache_extent extent;
274 struct address_space *mapping = req->mapping;
275 struct page *page;
276 enum fscache_read_helper_trace what;
277 unsigned int notes;
278 pgoff_t eof, cursor, start, trailer = ULONG_MAX;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org