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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203222155.TlSyCe5J-lkp@intel.com>
Date:   Tue, 22 Mar 2022 21:44:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [mingo-tip:master 421/2335] include/linux/huge_mm.h:168:6: error:
 implicit declaration of function 'vma_is_dax'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   85293bf3fca6d85608cff1447ce3097583f15fab
commit: f7a0205170ca096c85d224726dc7f9cfc5950de3 [421/2335] headers/uninline: Uninline multi-use function: vma_is_dax() and vma_is_fsdax()
config: i386-randconfig-a016-20220314 (https://download.01.org/0day-ci/archive/20220322/202203222155.TlSyCe5J-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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/mingo/tip.git/commit/?id=f7a0205170ca096c85d224726dc7f9cfc5950de3
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip master
        git checkout f7a0205170ca096c85d224726dc7f9cfc5950de3
        # 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=i386 SHELL=/bin/bash fs/

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

Note: the mingo-tip/master HEAD 85293bf3fca6d85608cff1447ce3097583f15fab builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from fs/fuse/virtio_fs.c:8:
   In file included from include/linux/dax.h:6:
   In file included from include/linux/mm.h:689:
>> include/linux/huge_mm.h:168:6: error: implicit declaration of function 'vma_is_dax' [-Werror,-Wimplicit-function-declaration]
           if (vma_is_dax(vma))
               ^
   In file included from fs/fuse/virtio_fs.c:8:
   In file included from include/linux/dax.h:6:
>> include/linux/mm.h:3240:13: error: conflicting types for 'vma_is_dax'
   extern bool vma_is_dax(const struct vm_area_struct *vma);
               ^
   include/linux/huge_mm.h:168:6: note: previous implicit declaration is here
           if (vma_is_dax(vma))
               ^
   2 errors generated.


vim +/vma_is_dax +168 include/linux/huge_mm.h

bae84953815793 Aneesh Kumar K.V  2021-02-24  152  
bae84953815793 Aneesh Kumar K.V  2021-02-24  153  	/*
bae84953815793 Aneesh Kumar K.V  2021-02-24  154  	 * If the hardware/firmware marked hugepage support disabled.
bae84953815793 Aneesh Kumar K.V  2021-02-24  155  	 */
bae84953815793 Aneesh Kumar K.V  2021-02-24  156  	if (transparent_hugepage_flags & (1 << TRANSPARENT_HUGEPAGE_NEVER_DAX))
bae84953815793 Aneesh Kumar K.V  2021-02-24  157  		return false;
bae84953815793 Aneesh Kumar K.V  2021-02-24  158  
e6be37b2e7bddf Miaohe Lin        2021-06-30  159  	if (!transhuge_vma_enabled(vma, vma->vm_flags))
16981d763501c0 Dan Williams      2017-07-10  160  		return false;
16981d763501c0 Dan Williams      2017-07-10  161  
222100eed264ba Anshuman Khandual 2020-04-01  162  	if (vma_is_temporary_stack(vma))
16981d763501c0 Dan Williams      2017-07-10  163  		return false;
16981d763501c0 Dan Williams      2017-07-10  164  
16981d763501c0 Dan Williams      2017-07-10  165  	if (transparent_hugepage_flags & (1 << TRANSPARENT_HUGEPAGE_FLAG))
16981d763501c0 Dan Williams      2017-07-10  166  		return true;
bae84953815793 Aneesh Kumar K.V  2021-02-24  167  
baabda26142451 Dan Williams      2017-07-10 @168  	if (vma_is_dax(vma))
baabda26142451 Dan Williams      2017-07-10  169  		return true;
baabda26142451 Dan Williams      2017-07-10  170  
16981d763501c0 Dan Williams      2017-07-10  171  	if (transparent_hugepage_flags &
16981d763501c0 Dan Williams      2017-07-10  172  				(1 << TRANSPARENT_HUGEPAGE_REQ_MADV_FLAG))
16981d763501c0 Dan Williams      2017-07-10  173  		return !!(vma->vm_flags & VM_HUGEPAGE);
16981d763501c0 Dan Williams      2017-07-10  174  
16981d763501c0 Dan Williams      2017-07-10  175  	return false;
16981d763501c0 Dan Williams      2017-07-10  176  }
16981d763501c0 Dan Williams      2017-07-10  177  

:::::: The code at line 168 was first introduced by commit
:::::: baabda261424517110ea98c6651f632ebf2561e3 mm: always enable thp for dax mappings

:::::: TO: Dan Williams <dan.j.williams@...el.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ