All of lore.kernel.org
 help / color / mirror / Atom feed
* [avpatel:riscv_sbi_hsm_suspend_v1 9/11] drivers/cpuidle/cpuidle-sbi.c:40:6: warning: no previous prototype for function 'sbi_set_domain_state'
@ 2021-02-21  7:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-21  7:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/avpatel/linux.git riscv_sbi_hsm_suspend_v1
head:   70f39273bacbdb1c8e5538554513dca6dd1b7657
commit: ca59753cc770da6dcb5d79a0a2ba01bc56db0e03 [9/11] cpuidle: Add RISC-V SBI CPU idle driver
config: riscv-randconfig-r034-20210221 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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/avpatel/linux/commit/ca59753cc770da6dcb5d79a0a2ba01bc56db0e03
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_sbi_hsm_suspend_v1
        git checkout ca59753cc770da6dcb5d79a0a2ba01bc56db0e03
        # 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 >>):

>> drivers/cpuidle/cpuidle-sbi.c:40:6: warning: no previous prototype for function 'sbi_set_domain_state' [-Wmissing-prototypes]
   void sbi_set_domain_state(u32 state)
        ^
   drivers/cpuidle/cpuidle-sbi.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void sbi_set_domain_state(u32 state)
   ^
   static 
   1 warning generated.


vim +/sbi_set_domain_state +40 drivers/cpuidle/cpuidle-sbi.c

    39	
  > 40	void sbi_set_domain_state(u32 state)
    41	{
    42		__this_cpu_write(domain_state, state);
    43	}
    44	

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

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

only message in thread, other threads:[~2021-02-21  7:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-21  7:59 [avpatel:riscv_sbi_hsm_suspend_v1 9/11] drivers/cpuidle/cpuidle-sbi.c:40:6: warning: no previous prototype for function 'sbi_set_domain_state' 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.