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/9] fs/f2fs/file.c:584:7: error: implicit declaration of function 'daxdev_mapping_supported'
Date: Mon, 20 Dec 2021 22:06:57 +0800 [thread overview]
Message-ID: <202112202110.sW5LQCPm-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/dax
head: d08999836fd60ab725eee1f5a5fb3b00f7bcefd3
commit: f154828642167c70161576b977082361123a5768 [4/9] f2fs: support dax page fault
config: mips-randconfig-r002-20211220 (https://download.01.org/0day-ci/archive/20211220/202112202110.sW5LQCPm-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 683cbc12b33e5c8dc8d29bf5ed79fbf45763aadd)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id=f154828642167c70161576b977082361123a5768
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 f154828642167c70161576b977082361123a5768
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash fs/f2fs/
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/f2fs/file.c:584:7: error: implicit declaration of function 'daxdev_mapping_supported' [-Werror,-Wimplicit-function-declaration]
if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
^
1 error generated.
vim +/daxdev_mapping_supported +584 fs/f2fs/file.c
569
570 static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
571 {
572 struct inode *inode = file_inode(file);
573
574 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
575 return -EIO;
576
577 if (!f2fs_is_compress_backend_ready(inode))
578 return -EOPNOTSUPP;
579
580 /*
581 * We don't support synchronous mappings for non-DAX files and
582 * for DAX files if underneath dax_device is not synchronous.
583 */
> 584 if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
585 return -EOPNOTSUPP;
586
587 file_accessed(file);
588
589 if (IS_DAX(inode)) {
590 vma->vm_ops = &f2fs_dax_vm_ops;
591 vma->vm_flags |= VM_HUGEPAGE;
592 } else {
593 vma->vm_ops = &f2fs_file_vm_ops;
594 }
595
596 set_inode_flag(inode, FI_MMAP_FILE);
597 return 0;
598 }
599
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chao:feature/dax 4/9] fs/f2fs/file.c:584:7: error: implicit declaration of function 'daxdev_mapping_supported'
Date: Mon, 20 Dec 2021 22:06:57 +0800 [thread overview]
Message-ID: <202112202110.sW5LQCPm-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2796 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/dax
head: d08999836fd60ab725eee1f5a5fb3b00f7bcefd3
commit: f154828642167c70161576b977082361123a5768 [4/9] f2fs: support dax page fault
config: mips-randconfig-r002-20211220 (https://download.01.org/0day-ci/archive/20211220/202112202110.sW5LQCPm-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 683cbc12b33e5c8dc8d29bf5ed79fbf45763aadd)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id=f154828642167c70161576b977082361123a5768
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 f154828642167c70161576b977082361123a5768
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash fs/f2fs/
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/f2fs/file.c:584:7: error: implicit declaration of function 'daxdev_mapping_supported' [-Werror,-Wimplicit-function-declaration]
if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
^
1 error generated.
vim +/daxdev_mapping_supported +584 fs/f2fs/file.c
569
570 static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
571 {
572 struct inode *inode = file_inode(file);
573
574 if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
575 return -EIO;
576
577 if (!f2fs_is_compress_backend_ready(inode))
578 return -EOPNOTSUPP;
579
580 /*
581 * We don't support synchronous mappings for non-DAX files and
582 * for DAX files if underneath dax_device is not synchronous.
583 */
> 584 if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
585 return -EOPNOTSUPP;
586
587 file_accessed(file);
588
589 if (IS_DAX(inode)) {
590 vma->vm_ops = &f2fs_dax_vm_ops;
591 vma->vm_flags |= VM_HUGEPAGE;
592 } else {
593 vma->vm_ops = &f2fs_file_vm_ops;
594 }
595
596 set_inode_flag(inode, FI_MMAP_FILE);
597 return 0;
598 }
599
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2021-12-20 14:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-20 14:06 kernel test robot [this message]
2021-12-20 14:06 ` [chao:feature/dax 4/9] fs/f2fs/file.c:584:7: error: implicit declaration of function 'daxdev_mapping_supported' 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=202112202110.sW5LQCPm-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 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.