[xiang-erofs:dev-test 5/5] fs/erofs/zdata.c:1527:10: error: no member named 'ctx' in 'struct erofs_sb_info'
kernel test robot
lkp at intel.com
Sun Oct 10 22:41:18 AEDT 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test
head: 8aa390ac7b8e2b959258243bcd241ac7623b5840
commit: 8aa390ac7b8e2b959258243bcd241ac7623b5840 [5/5] erofs: introduce readmore decompression strategy
config: hexagon-randconfig-r041-20211010 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 903b30fea21f99d8f48fde4defcc838970e30ee1)
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/xiang/erofs.git/commit/?id=8aa390ac7b8e2b959258243bcd241ac7623b5840
git remote add xiang-erofs https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
git fetch --no-tags xiang-erofs dev-test
git checkout 8aa390ac7b8e2b959258243bcd241ac7623b5840
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/erofs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
>> fs/erofs/zdata.c:1527:10: error: no member named 'ctx' in 'struct erofs_sb_info'
sbi->ctx.readahead_sync_decompress &&
~~~ ^
fs/erofs/zdata.c:1528:22: error: no member named 'ctx' in 'struct erofs_sb_info'
nr_pages <= sbi->ctx.max_sync_decompress_pages);
~~~ ^
2 errors generated.
vim +1527 fs/erofs/zdata.c
1486
1487 static void z_erofs_readahead(struct readahead_control *rac)
1488 {
1489 struct inode *const inode = rac->mapping->host;
1490 struct erofs_sb_info *const sbi = EROFS_I_SB(inode);
1491 struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT(inode);
1492 struct page *page, *head = NULL;
1493 unsigned int nr_pages;
1494 LIST_HEAD(pagepool);
1495
1496 f.readahead = true;
1497 f.headoffset = readahead_pos(rac);
1498
1499 z_erofs_pcluster_readmore(&f, rac, f.headoffset +
1500 readahead_length(rac) - 1, &pagepool, true);
1501 nr_pages = readahead_count(rac);
1502 trace_erofs_readpages(inode, readahead_index(rac), nr_pages, false);
1503
1504 while ((page = readahead_page(rac))) {
1505 set_page_private(page, (unsigned long)head);
1506 head = page;
1507 }
1508
1509 while (head) {
1510 struct page *page = head;
1511 int err;
1512
1513 /* traversal in reverse order */
1514 head = (void *)page_private(page);
1515
1516 err = z_erofs_do_read_page(&f, page, &pagepool);
1517 if (err)
1518 erofs_err(inode->i_sb,
1519 "readahead error at page %lu @ nid %llu",
1520 page->index, EROFS_I(inode)->nid);
1521 put_page(page);
1522 }
1523 z_erofs_pcluster_readmore(&f, rac, 0, &pagepool, false);
1524 (void)z_erofs_collector_end(&f.clt);
1525
1526 z_erofs_runqueue(inode->i_sb, &f, &pagepool,
> 1527 sbi->ctx.readahead_sync_decompress &&
1528 nr_pages <= sbi->ctx.max_sync_decompress_pages);
1529 if (f.map.mpage)
1530 put_page(f.map.mpage);
1531
1532 /* clean up the remaining free pages */
1533 put_pages_list(&pagepool);
1534 }
1535
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32036 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20211010/2a9a2393/attachment.gz>
More information about the Linux-erofs
mailing list