lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 26 Aug 2021 02:51:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>
Cc:     clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
        Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: [chao-linux:feature/dax 5/11] fs/f2fs/file.c:588:7: error: implicit
 declaration of function 'daxdev_mapping_supported'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/dax
head:   1e51aff10ad27548ead6f2d7c0198bcb969fd631
commit: 9116c1c6ec61c7aafdcda7a1457870e681e7c674 [5/11] f2fs: support dax page fault
config: hexagon-buildonly-randconfig-r005-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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=9116c1c6ec61c7aafdcda7a1457870e681e7c674
        git remote add chao-linux https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
        git fetch --no-tags chao-linux feature/dax
        git checkout 9116c1c6ec61c7aafdcda7a1457870e681e7c674
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon 

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

All errors (new ones prefixed by >>):

>> fs/f2fs/file.c:588:7: error: implicit declaration of function 'daxdev_mapping_supported' [-Werror,-Wimplicit-function-declaration]
           if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
                ^
>> fs/f2fs/file.c:588:55: error: no member named 's_daxdev' in 'struct f2fs_sb_info'
           if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
                                              ~~~~~~~~~~~~~~~~  ^
   2 errors generated.


vim +/daxdev_mapping_supported +588 fs/f2fs/file.c

   573	
   574	static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)
   575	{
   576		struct inode *inode = file_inode(file);
   577	
   578		if (unlikely(f2fs_cp_error(F2FS_I_SB(inode))))
   579			return -EIO;
   580	
   581		if (!f2fs_is_compress_backend_ready(inode))
   582			return -EOPNOTSUPP;
   583	
   584		/*
   585		 * We don't support synchronous mappings for non-DAX files and
   586		 * for DAX files if underneath dax_device is not synchronous.
   587		 */
 > 588		if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
   589			return -EOPNOTSUPP;
   590	
   591		file_accessed(file);
   592	
   593		if (IS_DAX(inode)) {
   594			vma->vm_ops = &f2fs_dax_vm_ops;
   595			vma->vm_flags |= VM_HUGEPAGE;
   596		} else {
   597			vma->vm_ops = &f2fs_file_vm_ops;
   598		}
   599	
   600		set_inode_flag(inode, FI_MMAP_FILE);
   601		return 0;
   602	}
   603	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (26403 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ