All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linuxppc:next-test 150/209] arch/powerpc/mm/book3s64/radix_pgtable.c:183:6: error: no previous prototype for 'radix__change_memory_range'
Date: Tue, 13 Apr 2021 02:26:44 +0800	[thread overview]
Message-ID: <202104130238.fSbOYsC6-lkp@intel.com> (raw)

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

tree:   https://github.com/linuxppc/linux next-test
head:   7626ae32a84371a7790955cc086d1f570b2e14ba
commit: bd573a81312fd9d6520b1cc81a88fd29e670e1ff [150/209] powerpc/mm/64s: Allow STRICT_KERNEL_RWX again
config: powerpc-skiroot_defconfig (attached as .config)
compiler: powerpc64le-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/linuxppc/linux/commit/bd573a81312fd9d6520b1cc81a88fd29e670e1ff
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc next-test
        git checkout bd573a81312fd9d6520b1cc81a88fd29e670e1ff
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

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 >>):

>> arch/powerpc/mm/book3s64/radix_pgtable.c:183:6: error: no previous prototype for 'radix__change_memory_range' [-Werror=missing-prototypes]
     183 | void radix__change_memory_range(unsigned long start, unsigned long end,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/radix__change_memory_range +183 arch/powerpc/mm/book3s64/radix_pgtable.c

2ad452ffaaa8d2 arch/powerpc/mm/pgtable-radix.c          Nicholas Piggin  2018-02-14  181  
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  182  #ifdef CONFIG_STRICT_KERNEL_RWX
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14 @183  void radix__change_memory_range(unsigned long start, unsigned long end,
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14  184  				unsigned long clear)
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  185  {
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  186  	unsigned long idx;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  187  	pgd_t *pgdp;
2fb4706057bcf8 arch/powerpc/mm/book3s64/radix_pgtable.c Mike Rapoport    2020-06-04  188  	p4d_t *p4dp;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  189  	pud_t *pudp;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  190  	pmd_t *pmdp;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  191  	pte_t *ptep;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  192  
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  193  	start = ALIGN_DOWN(start, PAGE_SIZE);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  194  	end = PAGE_ALIGN(end); // aligns up
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  195  
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14  196  	pr_debug("Changing flags on range %lx-%lx removing 0x%lx\n",
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14  197  		 start, end, clear);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  198  
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  199  	for (idx = start; idx < end; idx += PAGE_SIZE) {
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  200  		pgdp = pgd_offset_k(idx);
2fb4706057bcf8 arch/powerpc/mm/book3s64/radix_pgtable.c Mike Rapoport    2020-06-04  201  		p4dp = p4d_offset(pgdp, idx);
2fb4706057bcf8 arch/powerpc/mm/book3s64/radix_pgtable.c Mike Rapoport    2020-06-04  202  		pudp = pud_alloc(&init_mm, p4dp, idx);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  203  		if (!pudp)
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  204  			continue;
d6eacedd1f0ebf arch/powerpc/mm/book3s64/radix_pgtable.c Aneesh Kumar K.V 2019-05-14  205  		if (pud_is_leaf(*pudp)) {
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  206  			ptep = (pte_t *)pudp;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  207  			goto update_the_pte;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  208  		}
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  209  		pmdp = pmd_alloc(&init_mm, pudp, idx);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  210  		if (!pmdp)
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  211  			continue;
d6eacedd1f0ebf arch/powerpc/mm/book3s64/radix_pgtable.c Aneesh Kumar K.V 2019-05-14  212  		if (pmd_is_leaf(*pmdp)) {
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  213  			ptep = pmdp_ptep(pmdp);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  214  			goto update_the_pte;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  215  		}
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  216  		ptep = pte_alloc_kernel(pmdp, idx);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  217  		if (!ptep)
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  218  			continue;
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  219  update_the_pte:
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14  220  		radix__pte_update(&init_mm, idx, ptep, clear, 0, 0);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  221  	}
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  222  
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  223  	radix__flush_tlb_kernel_range(start, end);
7614ff3272a115 arch/powerpc/mm/pgtable-radix.c          Balbir Singh     2017-06-29  224  }
b134bd90286dc9 arch/powerpc/mm/pgtable-radix.c          Michael Ellerman 2017-07-14  225  

:::::: The code@line 183 was first introduced by commit
:::::: b134bd90286dc9f2952c35a91ab405474ca9374c powerpc/mm/radix: Refactor radix__mark_rodata_ro()

:::::: TO: Michael Ellerman <mpe@ellerman.id.au>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

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

             reply	other threads:[~2021-04-12 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 18:26 kernel test robot [this message]
2021-04-13 13:53 ` [linuxppc:next-test 150/209] arch/powerpc/mm/book3s64/radix_pgtable.c:183:6: error: no previous prototype for 'radix__change_memory_range' Michael Ellerman
2021-04-14  8:41   ` Rong Chen
2021-04-14 11:36     ` Michael Ellerman

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=202104130238.fSbOYsC6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.