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: <202210120630.ZkTLKoGt-lkp@intel.com>
Date:   Wed, 12 Oct 2022 06:54:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dan Williams <dan.j.williams@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [djbw-nvdimm:libnvdimm-pending 19/24] drivers/dax/mapping.c:61:24:
 error: 'PUD_ORDER' undeclared; did you mean 'MAX_ORDER'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head:   4a35ce1717f356ac1862763eef5c0220c043637a
commit: 0a76f0db07546b4b263d23ebc613eba8c46ce204 [19/24] devdax: add PUD support to the DAX mapping infrastructure
config: riscv-randconfig-r011-20221010
compiler: riscv64-linux-gcc (GCC) 12.1.0
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=0a76f0db07546b4b263d23ebc613eba8c46ce204
        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 0a76f0db07546b4b263d23ebc613eba8c46ce204
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/

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

   drivers/dax/mapping.c: In function 'dax_entry_order':
>> drivers/dax/mapping.c:61:24: error: 'PUD_ORDER' undeclared (first use in this function); did you mean 'MAX_ORDER'?
      61 |                 return PUD_ORDER;
         |                        ^~~~~~~~~
         |                        MAX_ORDER
   drivers/dax/mapping.c:61:24: note: each undeclared identifier is reported only once for each function it appears in
   drivers/dax/mapping.c:63:24: error: 'PMD_ORDER' undeclared (first use in this function); did you mean 'MAX_ORDER'?
      63 |                 return PMD_ORDER;
         |                        ^~~~~~~~~
         |                        MAX_ORDER
   drivers/dax/mapping.c: In function 'dax_entry_waitqueue':
   drivers/dax/mapping.c:136:27: error: 'PG_PMD_COLOUR' undeclared (first use in this function)
     136 |                 index &= ~PG_PMD_COLOUR;
         |                           ^~~~~~~~~~~~~
   drivers/dax/mapping.c: In function 'dax_grab_mapping_entry':
   drivers/dax/mapping.c:603:34: error: 'PG_PMD_COLOUR' undeclared (first use in this function)
     603 |                         colour = PG_PMD_COLOUR;
         |                                  ^~~~~~~~~~~~~
   drivers/dax/mapping.c:604:30: error: 'PG_PMD_NR' undeclared (first use in this function); did you mean 'HPAGE_PMD_NR'?
     604 |                         nr = PG_PMD_NR;
         |                              ^~~~~~~~~
         |                              HPAGE_PMD_NR
>> drivers/dax/mapping.c:606:34: error: 'PG_PUD_COLOUR' undeclared (first use in this function)
     606 |                         colour = PG_PUD_COLOUR;
         |                                  ^~~~~~~~~~~~~
>> drivers/dax/mapping.c:607:30: error: 'PG_PUD_NR' undeclared (first use in this function)
     607 |                         nr = PG_PUD_NR;
         |                              ^~~~~~~~~
   drivers/dax/mapping.c: In function 'dax_insert_entry':
   drivers/dax/mapping.c:889:63: error: 'PG_PUD_COLOUR' undeclared (first use in this function)
     889 |                         unmap_mapping_pages(mapping, index & ~PG_PUD_COLOUR,
         |                                                               ^~~~~~~~~~~~~
   drivers/dax/mapping.c:890:45: error: 'PG_PUD_NR' undeclared (first use in this function)
     890 |                                             PG_PUD_NR, false);
         |                                             ^~~~~~~~~
   drivers/dax/mapping.c:892:63: error: 'PG_PMD_COLOUR' undeclared (first use in this function)
     892 |                         unmap_mapping_pages(mapping, index & ~PG_PMD_COLOUR,
         |                                                               ^~~~~~~~~~~~~
   drivers/dax/mapping.c:893:41: error: 'PG_PMD_NR' undeclared (first use in this function); did you mean 'HPAGE_PMD_NR'?
     893 |                                         PG_PMD_NR, false);
         |                                         ^~~~~~~~~
         |                                         HPAGE_PMD_NR
   drivers/dax/mapping.c: In function 'dax_writeback_one':
   drivers/dax/mapping.c:1004:17: error: implicit declaration of function 'pfn_mkclean_range' [-Werror=implicit-function-declaration]
    1004 |                 pfn_mkclean_range(pfn, count, index, vma);
         |                 ^~~~~~~~~~~~~~~~~
   drivers/dax/mapping.c: In function 'dax_insert_pfn_mkwrite':
   drivers/dax/mapping.c:1067:27: error: 'PUD_ORDER' undeclared (first use in this function); did you mean 'MAX_ORDER'?
    1067 |         else if (order == PUD_ORDER)
         |                           ^~~~~~~~~
         |                           MAX_ORDER
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DAX
   Depends on [n]: MMU [=n]
   Selected by [m]:
   - BLK_DEV_PMEM [=m] && LIBNVDIMM [=m]


vim +61 drivers/dax/mapping.c

    57	
    58	static unsigned int dax_entry_order(void *entry)
    59	{
    60		if (xa_to_value(entry) & DAX_PUD)
  > 61			return PUD_ORDER;
    62		if (xa_to_value(entry) & DAX_PMD)
    63			return PMD_ORDER;
    64		return 0;
    65	}
    66	

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

View attachment "config" of type "text/plain" (135648 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ