linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 3897/4551] arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for function 'create_section_mapping'
@ 2020-11-10 12:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-10 12:00 UTC (permalink / raw)
  To: Dan Williams
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Thomas Gleixner, Christoph Hellwig, Andrew Morton

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6dd65e60af981e77a6bc142d82138c26fb18c3e9
commit: 4301edca7073d0e53c321411404bee65dfdc0324 [3897/4551] mm-fix-phys_to_target_node-and-memory_add_physaddr_to_nid-exports-v4
config: powerpc64-randconfig-r025-20201110 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4d81c8adb6ed9840257f6cb6b93f60856d422a15)
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/next/linux-next.git/commit/?id=4301edca7073d0e53c321411404bee65dfdc0324
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 4301edca7073d0e53c321411404bee65dfdc0324
        # 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 warnings (new ones prefixed by >>):

>> arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for function 'create_section_mapping' [-Wmissing-prototypes]
   int __weak create_section_mapping(unsigned long start, unsigned long end,
              ^
   arch/powerpc/mm/mem.c:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __weak create_section_mapping(unsigned long start, unsigned long end,
   ^
   static 
   1 warning generated.
--
>> arch/powerpc/mm/book3s64/pgtable.c:174:15: warning: no previous prototype for function 'create_section_mapping' [-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:405:6: warning: no previous prototype for function 'arch_report_meminfo' [-Wmissing-prototypes]
   void arch_report_meminfo(struct seq_file *m)
        ^
   arch/powerpc/mm/book3s64/pgtable.c:405:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void arch_report_meminfo(struct seq_file *m)
   ^
   static 
   2 warnings generated.

vim +/create_section_mapping +91 arch/powerpc/mm/mem.c

bc02af93dd2bbdd Yasunori Goto          2006-06-27  90  
4e00c5affdd4b04 Logan Gunthorpe        2020-04-10 @91  int __weak create_section_mapping(unsigned long start, unsigned long end,
4e00c5affdd4b04 Logan Gunthorpe        2020-04-10  92  				  int nid, pgprot_t prot)
fecbfabe1dc9405 Benjamin Herrenschmidt 2016-07-05  93  {
fecbfabe1dc9405 Benjamin Herrenschmidt 2016-07-05  94  	return -ENODEV;
fecbfabe1dc9405 Benjamin Herrenschmidt 2016-07-05  95  }
fecbfabe1dc9405 Benjamin Herrenschmidt 2016-07-05  96  

:::::: The code at line 91 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: 29903 bytes --]

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 12:00 [linux-next:master 3897/4551] arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for function 'create_section_mapping' 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;
as well as URLs for NNTP newsgroup(s).