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:   Mon, 8 Aug 2022 03:27:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Chao Yu <yuchao0@...wei.com>, Chao Yu <chao@...nel.org>,
        linux-kernel@...r.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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ