From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: [RFC PATCH 6/6] erofs: enable page cache sharing in fscache mode
Date: Thu, 19 Jan 2023 09:06:17 +0800 [thread overview]
Message-ID: <202301190850.EDJzy3Cz-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "gcc: unused function warning for stub function"
::::::
BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20230106125330.55529-7-jefflexu@linux.alibaba.com>
References: <20230106125330.55529-7-jefflexu@linux.alibaba.com>
TO: Jingbo Xu <jefflexu@linux.alibaba.com>
Hi Jingbo,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on xiang-erofs/dev-test]
[also build test WARNING on xiang-erofs/dev xiang-erofs/fixes linus/master v6.2-rc4 next-20230118]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Jingbo-Xu/erofs-remove-unused-device-mapping-in-the-meta-routine/20230106-205600
base: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test
patch link: https://lore.kernel.org/r/20230106125330.55529-7-jefflexu%40linux.alibaba.com
patch subject: [RFC PATCH 6/6] erofs: enable page cache sharing in fscache mode
:::::: branch date: 13 days ago
:::::: commit date: 13 days ago
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20230119/202301190850.EDJzy3Cz-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/intel-lab-lkp/linux/commit/5c565bd6afacc699309e9fc20119d91501a5d3ae
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jingbo-Xu/erofs-remove-unused-device-mapping-in-the-meta-routine/20230106-205600
git checkout 5c565bd6afacc699309e9fc20119d91501a5d3ae
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/erofs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/erofs/inode.c:244:13: warning: unused function 'erofs_can_share_page_cache' [-Wunused-function]
static bool erofs_can_share_page_cache(struct inode *inode)
^
1 warning generated.
vim +/erofs_can_share_page_cache +244 fs/erofs/inode.c
431339ba90423a0 drivers/staging/erofs/inode.c Gao Xiang 2018-07-26 243
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 @244 static bool erofs_can_share_page_cache(struct inode *inode)
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 245 {
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 246 struct erofs_inode *vi = EROFS_I(inode);
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 247
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 248 /* enable page cache sharing only in share domain mode */
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 249 if (!erofs_is_fscache_mode(inode->i_sb) ||
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 250 !EROFS_SB(inode->i_sb)->domain_id)
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 251 return false;
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 252
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 253 if (vi->datalayout != EROFS_INODE_CHUNK_BASED)
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 254 return false;
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 255
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 256 /* avoid crossing multi devicces/blobs */
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 257 if (inode->i_size > 1UL << vi->chunkbits)
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 258 return false;
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 259
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 260 /* avoid data leakage in mmap routine */
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 261 if (EROFS_BLKSIZ % PAGE_SIZE)
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 262 return false;
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 263
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 264 return true;
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 265 }
5c565bd6afacc69 fs/erofs/inode.c Jingbo Xu 2023-01-06 266
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next reply other threads:[~2023-01-19 1:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 1:06 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-18 23:01 [RFC PATCH 6/6] erofs: enable page cache sharing in fscache mode kernel test robot
2023-01-06 12:53 [RFC PATCH 0/6] erofs: support page cache sharing between EROFS images " Jingbo Xu
2023-01-06 12:53 ` [RFC PATCH 6/6] erofs: enable page cache sharing " Jingbo Xu
2023-01-06 12:53 ` Jingbo Xu
2023-01-19 8:54 ` kernel test robot
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=202301190850.EDJzy3Cz-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 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.