[linux-next:master 12377/12643] arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f477dd6eede3ecedc8963478571d99ec3bf3f762
commit: 4d460b397e28528bab4b2cea6a9337560e78b0b8 [12377/12643] mm: add p{g/4}d_leaf() in asm-generic/pgtable-nop{4/u}d.h
config: mips-randconfig-r035-20230528 (https://download.01.org/0day-ci/archive/20240711/202407112219.UMkURKb4-lkp@xxxxxxxxx/config)
compiler: mipsel-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240711/202407112219.UMkURKb4-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407112219.UMkURKb4-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:30,
                    from arch/mips/kernel/asm-offsets.c:15:
>> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined
     758 | #define pud_leaf(pud)   ((pud_val(pud) & _PAGE_HUGE) != 0)
         | 
   In file included from arch/mips/include/asm/pgtable-32.h:19,
                    from arch/mips/include/asm/pgtable.h:14:
   include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition
      34 | #define pud_leaf pud_leaf
         | 
--
   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:30,
                    from include/linux/pid_namespace.h:7,
                    from include/linux/ptrace.h:10,
                    from include/linux/elfcore.h:11,
                    from include/linux/vmcore_info.h:6,
                    from include/linux/kexec.h:18,
                    from arch/mips/kernel/traps.c:20:
>> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined
     758 | #define pud_leaf(pud)   ((pud_val(pud) & _PAGE_HUGE) != 0)
         | 
   In file included from arch/mips/include/asm/pgtable-32.h:19,
                    from arch/mips/include/asm/pgtable.h:14:
   include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition
      34 | #define pud_leaf pud_leaf
         | 
   arch/mips/kernel/traps.c: In function 'do_mcheck':
   arch/mips/kernel/traps.c:1591:24: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable]
    1591 |         enum ctx_state prev_state;
         |                        ^~~~~~~~~~
--
   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:30,
                    from include/linux/pagemap.h:8,
                    from arch/mips/mm/init.c:21:
>> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined
     758 | #define pud_leaf(pud)   ((pud_val(pud) & _PAGE_HUGE) != 0)
         | 
   In file included from arch/mips/include/asm/pgtable-32.h:19,
                    from arch/mips/include/asm/pgtable.h:14:
   include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition
      34 | #define pud_leaf pud_leaf
         | 
   In file included from <command-line>:
   arch/mips/mm/init.c: In function 'mem_init':
   include/linux/compiler_types.h:510:45: error: call to '__compiletime_assert_321' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (PFN_PTE_SHIFT > PAGE_SHIFT)
     510 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:491:25: note: in definition of macro '__compiletime_assert'
     491 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler_types.h:510:9: note: in expansion of macro '_compiletime_assert'
     510 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   arch/mips/mm/init.c:470:9: note: in expansion of macro 'BUILD_BUG_ON'
     470 |         BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (PFN_PTE_SHIFT > PAGE_SHIFT));
         |         ^~~~~~~~~~~~
--
   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:30,
                    from arch/mips/kernel/asm-offsets.c:15:
>> arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined
     758 | #define pud_leaf(pud)   ((pud_val(pud) & _PAGE_HUGE) != 0)
         | 
   In file included from arch/mips/include/asm/pgtable-32.h:19,
                    from arch/mips/include/asm/pgtable.h:14:
   include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition
      34 | #define pud_leaf pud_leaf
         | 


vim +/pud_leaf +758 arch/mips/include/asm/pgtable.h

970d032fec3f96 Ralf Baechle 2012-10-18  755  
501b8104670140 Steven Price 2020-02-03  756  #ifdef _PAGE_HUGE
501b8104670140 Steven Price 2020-02-03  757  #define pmd_leaf(pmd)	((pmd_val(pmd) & _PAGE_HUGE) != 0)
501b8104670140 Steven Price 2020-02-03 @758  #define pud_leaf(pud)	((pud_val(pud) & _PAGE_HUGE) != 0)
501b8104670140 Steven Price 2020-02-03  759  #endif
501b8104670140 Steven Price 2020-02-03  760  

:::::: The code at line 758 was first introduced by commit
:::::: 501b81046701408a23bb11f75f1fb4e8521c64a6 mips: mm: add p?d_leaf() definitions

:::::: TO: Steven Price <steven.price@xxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux