Content-Type: multipart/mixed; boundary="===============1778826021584272504==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v1 12/23] erofs: implement fscache-based metadata read Date: Tue, 28 Dec 2021 01:17:42 +0800 Message-ID: <202112280132.0kJ8Vjql-lkp@intel.com> In-Reply-To: <20211227125444.21187-13-jefflexu@linux.alibaba.com> List-Id: --===============1778826021584272504== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Jeffle, Thank you for the patch! Yet something to improve: [auto build test ERROR on dhowells-fs/fscache-next] [cannot apply to xiang-erofs/dev-test ceph-client/for-linus linus/master v5= .16-rc7 next-20211224] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jeffle-Xu/fscache-erofs-fs= cache-based-demand-read-semantics/20211227-205742 base: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.g= it fscache-next config: x86_64-randconfig-a014-20211227 (https://download.01.org/0day-ci/ar= chive/20211228/202112280132.0kJ8Vjql-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/c3453b91df3b4e89c33364534= 37f761d6cb6bca3 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jeffle-Xu/fscache-erofs-fscache-ba= sed-demand-read-semantics/20211227-205742 git checkout c3453b91df3b4e89c3336453437f761d6cb6bca3 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): vmlinux.o: warning: objtool: do_machine_check()+0x89f: call to queue_tas= k_work() leaves .noinstr.text section vmlinux.o: warning: objtool: enter_from_user_mode()+0x4e: call to on_thr= ead_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x59: call t= o on_thread_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x4e= : call to on_thread_stack() leaves .noinstr.text section vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x4e: call = to on_thread_stack() leaves .noinstr.text section ld: fs/erofs/fscache.o: in function `erofs_issue_op': fs/erofs/fscache.c:27: undefined reference to `netfs_subreq_terminated' ld: fs/erofs/fscache.o: in function `erofs_readpage_from_fscache': >> fs/erofs/fscache.c:59: undefined reference to `netfs_readpage' vim +59 fs/erofs/fscache.c 35 = 36 struct page *erofs_readpage_from_fscache(struct erofs_cookie_ctx *ct= x, 37 pgoff_t index) 38 { 39 struct folio *folio; 40 struct page *page; 41 struct super_block *sb =3D ctx->inode->i_sb; 42 int ret; 43 = 44 page =3D find_or_create_page(ctx->inode->i_mapping, index, GFP_KERN= EL); 45 if (unlikely(!page)) { 46 erofs_err(sb, "failed to allocate page"); 47 return ERR_PTR(-ENOMEM); 48 } 49 = 50 /* The content is already buffered in the address space */ 51 if (PageUptodate(page)) { 52 unlock_page(page); 53 return page; 54 } 55 = 56 /* Or a new page cache is created, then read the content from fscac= he */ 57 folio =3D page_folio(page); 58 = > 59 ret =3D netfs_readpage(NULL, folio, &erofs_req_ops, ctx->cookie); 60 if (unlikely(ret || !PageUptodate(page))) { 61 erofs_err(sb, "failed to read from fscache"); 62 return ERR_PTR(-EINVAL); 63 } 64 = 65 return page; 66 } 67 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1778826021584272504==--