linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Wende Tan <twd2.me@gmail.com>, arnd@arndb.de, linux-arch@vger.kernel.org
Cc: kbuild-all@lists.01.org, Wende Tan <twd2.me@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch: Move page table config macros out of `#ifndef __ASSEMBLY__` condition
Date: Tue, 20 Jul 2021 19:42:34 +0800	[thread overview]
Message-ID: <202107201907.lqC6B3dF-lkp@intel.com> (raw)
In-Reply-To: <20210719210318.1023754-1-twd2.me@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 12224 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24797 bytes --]

      reply	other threads:[~2021-07-20 11:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19 21:03 [PATCH] arch: Move page table config macros out of `#ifndef __ASSEMBLY__` condition Wende Tan
2021-07-20 11:42 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107201907.lqC6B3dF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=twd2.me@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).