linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [hnaz-linux-mm:master 127/421] arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one'
@ 2020-12-12 11:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-12 11:50 UTC (permalink / raw)
  To: Mike Rapoport
  Cc: kbuild-all, Johannes Weiner, Pekka Enberg, Andrew Morton,
	Linux Memory Management List

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

tree:   https://github.com/hnaz/linux-mm master
head:   2932a9e66c580f3c8d95ec27716d437198fb4c94
commit: 67ad3e4bc7bece716ce8cf261ed8bd3166ee06e7 [127/421] asm-generic: pgalloc: provide generic pud_alloc_one() and pud_free_one()
config: mips-randconfig-r031-20201209 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.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/hnaz/linux-mm/commit/67ad3e4bc7bece716ce8cf261ed8bd3166ee06e7
        git remote add hnaz-linux-mm https://github.com/hnaz/linux-mm
        git fetch --no-tags hnaz-linux-mm master
        git checkout 67ad3e4bc7bece716ce8cf261ed8bd3166ee06e7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

   In file included from arch/mips/sgi-ip27/ip27-memory.c:24:
>> arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one'
      81 | static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)
         |                      ^~~~~~~~~~~~~
   In file included from arch/mips/include/asm/pgalloc.h:18,
                    from arch/mips/sgi-ip27/ip27-memory.c:24:
   include/asm-generic/pgalloc.h:160:22: note: previous definition of 'pud_alloc_one' was here
     160 | static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr)
         |                      ^~~~~~~~~~~~~
   arch/mips/sgi-ip27/ip27-memory.c:390:13: warning: no previous prototype for 'prom_meminit' [-Wmissing-prototypes]
     390 | void __init prom_meminit(void)
         |             ^~~~~~~~~~~~
   arch/mips/sgi-ip27/ip27-memory.c:409:13: warning: no previous prototype for 'prom_free_prom_memory' [-Wmissing-prototypes]
     409 | void __init prom_free_prom_memory(void)
         |             ^~~~~~~~~~~~~~~~~~~~~

vim +/pud_alloc_one +81 arch/mips/include/asm/pgalloc.h

3377e227af441a Alex Belits  2017-02-16  80  
3377e227af441a Alex Belits  2017-02-16 @81  static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)
3377e227af441a Alex Belits  2017-02-16  82  {
3377e227af441a Alex Belits  2017-02-16  83  	pud_t *pud;
3377e227af441a Alex Belits  2017-02-16  84  
473738eb78c3e3 Michal Hocko 2017-07-12  85  	pud = (pud_t *) __get_free_pages(GFP_KERNEL, PUD_ORDER);
3377e227af441a Alex Belits  2017-02-16  86  	if (pud)
3377e227af441a Alex Belits  2017-02-16  87  		pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table);
3377e227af441a Alex Belits  2017-02-16  88  	return pud;
3377e227af441a Alex Belits  2017-02-16  89  }
3377e227af441a Alex Belits  2017-02-16  90  

:::::: The code at line 81 was first introduced by commit
:::::: 3377e227af441aff710726437adc20efc359fd9c MIPS: Add 48-bit VA space (and 4-level page tables) for 4K pages.

:::::: TO: Alex Belits <alex.belits@cavium.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
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: 31897 bytes --]

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

only message in thread, other threads:[~2020-12-12 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12 11:50 [hnaz-linux-mm:master 127/421] arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one' 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