All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping'
@ 2020-12-25 10:37 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-25 10:37 UTC (permalink / raw)
  To: Dan Williams
  Cc: kbuild-all, clang-built-linux, linux-kernel, Andrew Morton,
	Linux Memory Management List, Thomas Gleixner, Christoph Hellwig

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   71c5f03154ac1cb27423b984743ccc2f5d11d14d
commit: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports
date:   5 weeks ago
config: powerpc64-randconfig-r001-20201224 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a927bd6ba952d13c52b8b385030943032f659a3e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a927bd6ba952d13c52b8b385030943032f659a3e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping' [-Werror,-Wmissing-prototypes]
   int __meminit create_section_mapping(unsigned long start, unsigned long end,
                 ^
   arch/powerpc/mm/book3s64/pgtable.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __meminit create_section_mapping(unsigned long start, unsigned long end,
   ^
   static 
   arch/powerpc/mm/book3s64/pgtable.c:461:5: error: no previous prototype for function 'pmd_move_must_withdraw' [-Werror,-Wmissing-prototypes]
   int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
       ^
   arch/powerpc/mm/book3s64/pgtable.c:461:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
   ^
   static 
   2 errors generated.


vim +/create_section_mapping +174 arch/powerpc/mm/book3s64/pgtable.c

32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  172  
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  173  #ifdef CONFIG_MEMORY_HOTPLUG
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 @174  int __meminit create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  175  				     int nid, pgprot_t prot)
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  176  {
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  177  	if (radix_enabled())
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  178  		return radix__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  179  
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  180  	return hash__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  181  }
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  182  

:::::: The code at line 174 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()

:::::: TO: Logan Gunthorpe <logang@deltatee.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 39837 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping'
@ 2020-12-25 10:37 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-25 10:37 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   71c5f03154ac1cb27423b984743ccc2f5d11d14d
commit: a927bd6ba952d13c52b8b385030943032f659a3e mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports
date:   5 weeks ago
config: powerpc64-randconfig-r001-20201224 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a927bd6ba952d13c52b8b385030943032f659a3e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a927bd6ba952d13c52b8b385030943032f659a3e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping' [-Werror,-Wmissing-prototypes]
   int __meminit create_section_mapping(unsigned long start, unsigned long end,
                 ^
   arch/powerpc/mm/book3s64/pgtable.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __meminit create_section_mapping(unsigned long start, unsigned long end,
   ^
   static 
   arch/powerpc/mm/book3s64/pgtable.c:461:5: error: no previous prototype for function 'pmd_move_must_withdraw' [-Werror,-Wmissing-prototypes]
   int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
       ^
   arch/powerpc/mm/book3s64/pgtable.c:461:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
   ^
   static 
   2 errors generated.


vim +/create_section_mapping +174 arch/powerpc/mm/book3s64/pgtable.c

32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  172  
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  173  #ifdef CONFIG_MEMORY_HOTPLUG
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10 @174  int __meminit create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  175  				     int nid, pgprot_t prot)
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  176  {
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  177  	if (radix_enabled())
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  178  		return radix__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  179  
4e00c5affdd4b04 arch/powerpc/mm/book3s64/pgtable.c Logan Gunthorpe 2020-04-10  180  	return hash__create_section_mapping(start, end, nid, prot);
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  181  }
32b53c012e0bfe2 arch/powerpc/mm/pgtable-book3s64.c Reza Arbab      2017-01-03  182  

:::::: The code at line 174 was first introduced by commit
:::::: 4e00c5affdd4b04e6392001716333971932f3d0c powerpc/mm: thread pgprot_t through create_section_mapping()

:::::: TO: Logan Gunthorpe <logang@deltatee.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 39837 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-25 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-25 10:37 arch/powerpc/mm/book3s64/pgtable.c:174:15: error: no previous prototype for function 'create_section_mapping' kernel test robot
2020-12-25 10:37 ` kernel test robot

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.