[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204061506.FCv04vZT-lkp@intel.com>
Date: Wed, 6 Apr 2022 15:08:33 +0800
From: kernel test robot <lkp@...el.com>
To: Dan Williams <dan.j.williams@...el.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>
Subject: drivers/cxl/core/suspend.c:8:6: warning: no previous prototype for
function 'cxl_mem_active'
tree: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20220406-100617/Dan-Williams/cxl-mem-Disable-suspend/20220403-085917
head: 16a271eb76b492775d76beb93daa896c53d50b95
commit: 16a271eb76b492775d76beb93daa896c53d50b95 PM: CXL: Disable suspend
date: 5 hours ago
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220406/202204061506.FCv04vZT-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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/intel-lab-lkp/linux/commit/16a271eb76b492775d76beb93daa896c53d50b95
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review UPDATE-20220406-100617/Dan-Williams/cxl-mem-Disable-suspend/20220403-085917
git checkout 16a271eb76b492775d76beb93daa896c53d50b95
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/cxl/core/suspend.c:8:6: warning: no previous prototype for function 'cxl_mem_active' [-Wmissing-prototypes]
bool cxl_mem_active(void)
^
drivers/cxl/core/suspend.c:8:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool cxl_mem_active(void)
^
static
>> drivers/cxl/core/suspend.c:13:6: warning: no previous prototype for function 'cxl_mem_active_inc' [-Wmissing-prototypes]
void cxl_mem_active_inc(void)
^
drivers/cxl/core/suspend.c:13:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void cxl_mem_active_inc(void)
^
static
>> drivers/cxl/core/suspend.c:19:6: warning: no previous prototype for function 'cxl_mem_active_dec' [-Wmissing-prototypes]
void cxl_mem_active_dec(void)
^
drivers/cxl/core/suspend.c:19:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void cxl_mem_active_dec(void)
^
static
3 warnings generated.
vim +/cxl_mem_active +8 drivers/cxl/core/suspend.c
7
> 8 bool cxl_mem_active(void)
9 {
10 return atomic_read(&mem_active) != 0;
11 }
12
> 13 void cxl_mem_active_inc(void)
14 {
15 atomic_inc(&mem_active);
16 }
17 EXPORT_SYMBOL_NS_GPL(cxl_mem_active_inc, CXL);
18
> 19 void cxl_mem_active_dec(void)
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists