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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202107201907.lqC6B3dF-lkp@intel.com>
Date:   Tue, 20 Jul 2021 19:42:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     Wende Tan <twd2.me@...il.com>, arnd@...db.de,
        linux-arch@...r.kernel.org
Cc:     kbuild-all@...ts.01.org, Wende Tan <twd2.me@...il.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arch: Move page table config macros out of `#ifndef
 __ASSEMBLY__` condition

Hi Wende,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on soc/for-next]
[also build test WARNING on linux/master linus/master v5.14-rc2 next-20210720]
[cannot apply to asm-generic/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Wende-Tan/arch-Move-page-table-config-macros-out-of-ifndef-__ASSEMBLY__-condition/20210720-151850
base:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
config: m68k-randconfig-m031-20210720 (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.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://github.com/0day-ci/linux/commit/65ec31db75ded2f0754aa4153d9aa8bbc7ac9f96
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Wende-Tan/arch-Move-page-table-config-macros-out-of-ifndef-__ASSEMBLY__-condition/20210720-151850
        git checkout 65ec31db75ded2f0754aa4153d9aa8bbc7ac9f96
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/iio/accel/

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

All warnings (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/scatterlist.h:8,
                    from include/linux/spi/spi.h:15,
                    from drivers/iio/accel/adxl372.c:14:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
      41 | #define PMD_SIZE (1UL << PMD_SHIFT)
         | 
   In file included from arch/m68k/include/asm/pgtable_mm.h:7,
                    from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/scatterlist.h:8,
                    from include/linux/spi/spi.h:15,
                    from drivers/iio/accel/adxl372.c:14:
   include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
      12 | #define PMD_SIZE   (_UL(1) << PMD_SHIFT)
         | 
--
   In file included from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/kxcjk-1013.c:8:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
      41 | #define PMD_SIZE (1UL << PMD_SHIFT)
         | 
   In file included from arch/m68k/include/asm/pgtable_mm.h:7,
                    from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/kxcjk-1013.c:8:
   include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
      12 | #define PMD_SIZE   (_UL(1) << PMD_SHIFT)
         | 
   drivers/iio/accel/kxcjk-1013.c:321:3: warning: 'odr_start_up_times' defined but not used [-Wunused-const-variable=]
     321 | } odr_start_up_times[KX_MAX_CHIPS][12] = {
         |   ^~~~~~~~~~~~~~~~~~
--
   In file included from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/bmc150-accel-core.c:8:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
      41 | #define PMD_SIZE (1UL << PMD_SHIFT)
         | 
   In file included from arch/m68k/include/asm/pgtable_mm.h:7,
                    from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/bmc150-accel-core.c:8:
   include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
      12 | #define PMD_SIZE   (_UL(1) << PMD_SHIFT)
         | 
   drivers/iio/accel/bmc150-accel-core.c:168:3: warning: 'bmc150_accel_sample_upd_time' defined but not used [-Wunused-const-variable=]
     168 | } bmc150_accel_sample_upd_time[] = { {0x08, 64},
         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/bmc150-accel-i2c.c:9:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
      41 | #define PMD_SIZE (1UL << PMD_SHIFT)
         | 
   In file included from arch/m68k/include/asm/pgtable_mm.h:7,
                    from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/bmc150-accel-i2c.c:9:
   include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
      12 | #define PMD_SIZE   (_UL(1) << PMD_SHIFT)
         | 
   drivers/iio/accel/bmc150-accel-i2c.c:215:36: warning: 'bmc150_accel_acpi_match' defined but not used [-Wunused-const-variable=]
     215 | static const struct acpi_device_id bmc150_accel_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/mxc6255.c:11:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
      41 | #define PMD_SIZE (1UL << PMD_SHIFT)
         | 
   In file included from arch/m68k/include/asm/pgtable_mm.h:7,
                    from arch/m68k/include/asm/pgtable.h:5,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from include/linux/kallsyms.h:13,
                    from include/linux/bpf.h:20,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/i2c.h:18,
                    from drivers/iio/accel/mxc6255.c:11:
   include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
      12 | #define PMD_SIZE   (_UL(1) << PMD_SHIFT)
         | 
   drivers/iio/accel/mxc6255.c:168:36: warning: 'mxc6255_acpi_match' defined but not used [-Wunused-const-variable=]
     168 | static const struct acpi_device_id mxc6255_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~


vim +/PMD_SIZE +41 arch/m68k/include/asm/pgtable_mm.h

^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  35  
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  36  
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  37  /* PMD_SHIFT determines the size of the area a second-level page table can map */
60e50f34b13e9e arch/m68k/include/asm/pgtable_mm.h Mike Rapoport  2019-12-04  38  #if CONFIG_PGTABLE_LEVELS == 3
ef22d8abd876e8 arch/m68k/include/asm/pgtable_mm.h Peter Zijlstra 2020-01-31  39  #define PMD_SHIFT	18
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  40  #endif
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16 @41  #define PMD_SIZE	(1UL << PMD_SHIFT)
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  42  #define PMD_MASK	(~(PMD_SIZE-1))
^1da177e4c3f41 include/asm-m68k/pgtable.h         Linus Torvalds 2005-04-16  43  

---
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" (24797 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ