Linux-EROFS Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gao Xiang <hsiangkao@linux.alibaba.com>
Cc: linux-erofs@lists.ozlabs.org, kbuild-all@lists.01.org
Subject: [xiang-erofs:dev-test 5/5] fs/erofs/zdata.c:1527:29: error: 'struct erofs_sb_info' has no member named 'ctx'
Date: Sun, 10 Oct 2021 19:34:45 +0800	[thread overview]
Message-ID: <202110101938.EKDZglUE-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3552 bytes --]

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: arm-buildonly-randconfig-r006-20211010 (attached as .config)
compiler: arm-linux-gnueabi-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/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=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash fs/erofs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/erofs/zdata.c: In function 'z_erofs_readahead':
>> fs/erofs/zdata.c:1527:29: error: 'struct erofs_sb_info' has no member named 'ctx'
    1527 |                          sbi->ctx.readahead_sync_decompress &&
         |                             ^~
   fs/erofs/zdata.c:1528:41: error: 'struct erofs_sb_info' has no member named 'ctx'
    1528 |                          nr_pages <= sbi->ctx.max_sync_decompress_pages);
         |                                         ^~


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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44146 bytes --]

                 reply	other threads:[~2021-10-10 11:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110101938.EKDZglUE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hsiangkao@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-erofs@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox