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]
Message-ID: <202209141902.w0oaRZqa-lkp@intel.com>
Date:   Wed, 14 Sep 2022 19:37:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dan Williams <dan.j.williams@...el.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [djbw-nvdimm:libnvdimm-pending 16/22] include/linux/dax.h:195:26:
 error: expected ';' after top level declarator

Hi Dan,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head:   e27a0356de15f16934325784c6b1d89cf0f13458
commit: 155ac6b670cf6385f6dd14910560d569560af889 [16/22] devdax: Move address_space helpers to the DAX core
config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220914/202209141902.w0oaRZqa-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/djbw/nvdimm.git/commit/?id=155ac6b670cf6385f6dd14910560d569560af889
        git remote add djbw-nvdimm https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git
        git fetch --no-tags djbw-nvdimm libnvdimm-pending
        git checkout 155ac6b670cf6385f6dd14910560d569560af889
        # 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

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 >>):

   In file included from mm/filemap.c:15:
>> include/linux/dax.h:195:26: error: expected ';' after top level declarator
                                                     pgoff_t nr_pages)
                                                                      ^
                                                                      ;
   In file included from mm/filemap.c:25:
   include/linux/mman.h:154:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:132:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from mm/readahead.c:118:
>> include/linux/dax.h:195:26: error: expected ';' after top level declarator
                                                     pgoff_t nr_pages)
                                                                      ^
                                                                      ;
   1 error generated.


vim +195 include/linux/dax.h

5fac7408d82871 Dan Williams 2018-03-09  192  
a55637f2b5002e Dan Williams 2022-09-07  193  static inline struct page *dax_zap_mappings_range(struct address_space *mapping,
a55637f2b5002e Dan Williams 2022-09-07  194  						  pgoff_t start,
a55637f2b5002e Dan Williams 2022-09-07 @195  						  pgoff_t nr_pages)
155ac6b670cf63 Dan Williams 2022-09-03  196  static inline dax_entry_t dax_lock_page(struct page *page)
6bbdd563ee9a60 Vivek Goyal  2020-03-03  197  {
155ac6b670cf63 Dan Williams 2022-09-03  198  	if (IS_DAX(page->mapping->host))
155ac6b670cf63 Dan Williams 2022-09-03  199  		return ~0UL;
155ac6b670cf63 Dan Williams 2022-09-03  200  	return 0;
6bbdd563ee9a60 Vivek Goyal  2020-03-03  201  }
6bbdd563ee9a60 Vivek Goyal  2020-03-03  202  

:::::: The code at line 195 was first introduced by commit
:::::: a55637f2b5002e15813f88741e90ce6f463879e1 fsdax: Rework dax_layout_busy_page() to dax_zap_mappings()

:::::: TO: Dan Williams <dan.j.williams@...el.com>
:::::: CC: Dan Williams <dan.j.williams@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ