From: kernel test robot <lkp@intel.com> To: Mike Rapoport <rppt@linux.ibm.com> Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, Linux Memory Management List <linux-mm@kvack.org>, Pekka Enberg <penberg@kernel.org> Subject: arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one' Date: Thu, 13 Aug 2020 01:28:17 +0800 [thread overview] Message-ID: <202008130114.Em0abJAv%lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4469 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb893de323e2d39f7a1f6df425703a2edbdf56ea commit: d9e8b929670b4f79e07cdbcb0fb4f162a561d5c6 asm-generic: pgalloc: provide generic pud_alloc_one() and pud_free_one() date: 5 days ago config: mips-randconfig-p001-20200812 (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 git checkout d9e8b929670b4f79e07cdbcb0fb4f162a561d5c6 # 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/mm/init.c:43: >> 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/mm/init.c:43: 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/mm/init.c:61:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes] 61 | void setup_zero_pages(void) | ^~~~~~~~~~~~~~~~ -- In file included from arch/mips/mm/pgtable.c:9: >> 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/mm/pgtable.c:9: 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) | ^~~~~~~~~~~~~ -- In file included from arch/mips/mm/pgtable-64.c:13: >> 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/mm/pgtable-64.c:13: 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/mm/pgtable-64.c:90:7: warning: no previous prototype for 'mk_pmd' [-Wmissing-prototypes] 90 | pmd_t mk_pmd(struct page *page, pgprot_t prot) | ^~~~~~ arch/mips/mm/pgtable-64.c:99:6: warning: no previous prototype for 'set_pmd_at' [-Wmissing-prototypes] 99 | void set_pmd_at(struct mm_struct *mm, unsigned long addr, | ^~~~~~~~~~ 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: 25495 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one' Date: Thu, 13 Aug 2020 01:28:17 +0800 [thread overview] Message-ID: <202008130114.Em0abJAv%lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4551 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb893de323e2d39f7a1f6df425703a2edbdf56ea commit: d9e8b929670b4f79e07cdbcb0fb4f162a561d5c6 asm-generic: pgalloc: provide generic pud_alloc_one() and pud_free_one() date: 5 days ago config: mips-randconfig-p001-20200812 (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 git checkout d9e8b929670b4f79e07cdbcb0fb4f162a561d5c6 # 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/mm/init.c:43: >> 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/mm/init.c:43: 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/mm/init.c:61:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes] 61 | void setup_zero_pages(void) | ^~~~~~~~~~~~~~~~ -- In file included from arch/mips/mm/pgtable.c:9: >> 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/mm/pgtable.c:9: 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) | ^~~~~~~~~~~~~ -- In file included from arch/mips/mm/pgtable-64.c:13: >> 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/mm/pgtable-64.c:13: 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/mm/pgtable-64.c:90:7: warning: no previous prototype for 'mk_pmd' [-Wmissing-prototypes] 90 | pmd_t mk_pmd(struct page *page, pgprot_t prot) | ^~~~~~ arch/mips/mm/pgtable-64.c:99:6: warning: no previous prototype for 'set_pmd_at' [-Wmissing-prototypes] 99 | void set_pmd_at(struct mm_struct *mm, unsigned long addr, | ^~~~~~~~~~ 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(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 25495 bytes --]
next reply other threads:[~2020-08-12 17:28 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-12 17:28 kernel test robot [this message] 2020-08-12 17:28 ` arch/mips/include/asm/pgalloc.h:81:22: error: redefinition of 'pud_alloc_one' kernel test robot 2020-08-12 19:14 ` Mike Rapoport
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=202008130114.Em0abJAv%lkp@intel.com \ --to=lkp@intel.com \ --cc=akpm@linux-foundation.org \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=penberg@kernel.org \ --cc=rppt@linux.ibm.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.