linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [csky-linux:v5.14-rc2-of-delay-cpu-available 3/5] arch/riscv/mm/init.c:905:13: warning: no previous prototype for function 'pbmt_init'
@ 2021-07-27 19:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-27 19:44 UTC (permalink / raw)
  To: Guo Ren; +Cc: clang-built-linux, kbuild-all, linux-kernel, Liu Shaohua

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

tree:   https://github.com/c-sky/csky-linux v5.14-rc2-of-delay-cpu-available
head:   f6c22a2278708ce7227c42294e351ff53e8b279a
commit: 04be54eab2e8df9ac47f9d7e6ede22953f9f78e2 [3/5] riscv: pgtable: Add "PBMT" extension supported
config: riscv-randconfig-r035-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/c-sky/csky-linux/commit/04be54eab2e8df9ac47f9d7e6ede22953f9f78e2
        git remote add csky-linux https://github.com/c-sky/csky-linux
        git fetch --no-tags csky-linux v5.14-rc2-of-delay-cpu-available
        git checkout 04be54eab2e8df9ac47f9d7e6ede22953f9f78e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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/riscv/mm/init.c:905:13: warning: no previous prototype for function 'pbmt_init' [-Wmissing-prototypes]
   void __init pbmt_init(void)
               ^
   arch/riscv/mm/init.c:905:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init pbmt_init(void)
   ^
   static 
   1 warning generated.


vim +/pbmt_init +905 arch/riscv/mm/init.c

   903	
   904	#ifdef CONFIG_64BIT
 > 905	void __init pbmt_init(void)
   906	{
   907		struct device_node *cpu;
   908	
   909		cpu = of_find_node_by_path("/cpus");
   910		if (!cpu || of_property_read_bool(cpu, "pbmt-extension"))
   911			return;
   912	
   913		memset(&__riscv_pbmt, 0, sizeof(__riscv_pbmt));
   914	}
   915	#endif
   916	

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

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

only message in thread, other threads:[~2021-07-27 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 19:44 [csky-linux:v5.14-rc2-of-delay-cpu-available 3/5] arch/riscv/mm/init.c:905:13: warning: no previous prototype for function 'pbmt_init' 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).