From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [chao:feature/dax 4/10] fs/f2fs/file.c:585:7: error: call to undeclared function 'daxdev_mapping_supported'; ISO C99 and later do not support implicit function declarations
Date: Mon, 8 Aug 2022 03:27:00 +0800 [thread overview]
Message-ID: <202208080315.WUak48sf-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/dax
head: 42f73c9b2a369f724de6c1df5acb0bbde2688e35
commit: ceea248a26ac122204ddad5c76b55ff37fbc06b9 [4/10] f2fs: support dax page fault
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220808/202208080315.WUak48sf-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
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/chao/linux.git/commit/?id=ceea248a26ac122204ddad5c76b55ff37fbc06b9
git remote add chao https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
git fetch --no-tags chao feature/dax
git checkout ceea248a26ac122204ddad5c76b55ff37fbc06b9
# 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 SHELL=/bin/bash fs/f2fs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> fs/f2fs/file.c:585:7: error: call to undeclared function 'daxdev_mapping_supported'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
^
1 error generated.
vim +/daxdev_mapping_supported +585 fs/f2fs/file.c
570
571 static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
572 {
573 struct inode *inode = file_inode(file);
574
575 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
576 return -EIO;
577
578 if (!f2fs_is_compress_backend_ready(inode))
579 return -EOPNOTSUPP;
580
581 /*
582 * We don't support synchronous mappings for non-DAX files and
583 * for DAX files if underneath dax_device is not synchronous.
584 */
> 585 if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
586 return -EOPNOTSUPP;
587
588 file_accessed(file);
589
590 if (IS_DAX(inode)) {
591 vma->vm_ops = &f2fs_dax_vm_ops;
592 vma->vm_flags |= VM_HUGEPAGE;
593 } else {
594 vma->vm_ops = &f2fs_file_vm_ops;
595 }
596
597 set_inode_flag(inode, FI_MMAP_FILE);
598 return 0;
599 }
600
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-08-07 19:27 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=202208080315.WUak48sf-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=yuchao0@huawei.com \
/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
all inboxes | Powered by JetHome®