linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 12377/12643] arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined
@ 2024-07-11 14:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-11 14:30 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton, Peter Xu

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407112219.UMkURKb4-lkp@intel.com/

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@arm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-11 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-11 14:30 [linux-next:master 12377/12643] arch/mips/include/asm/pgtable.h:758: warning: "pud_leaf" redefined kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox