[cgroup:for-next 3/3] include/linux/misc_cgroup.h:98:15: warning: no previous prototype for function 'misc_cg_res_total_usage'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
head:   7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c
commit: 7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c [3/3] svm/sev: Register SEV and SEV-ES ASIDs to the misc controller
config: x86_64-randconfig-a004-20210405 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 30df6d5d6a8537d3ec7d8fe4299289a4c5a74d5c)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git/commit/?id=7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c
        git remote add cgroup https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git
        git fetch --no-tags cgroup for-next
        git checkout 7aef27f0b2a8a58c28578d3e0caf3f27e1a1c39c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from arch/x86/kvm/svm/sev.c:17:
>> include/linux/misc_cgroup.h:98:15: warning: no previous prototype for function 'misc_cg_res_total_usage' [-Wmissing-prototypes]
   unsigned long misc_cg_res_total_usage(enum misc_res_type type)
                 ^
   include/linux/misc_cgroup.h:98:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned long misc_cg_res_total_usage(enum misc_res_type type)
   ^
   static 
   1 warning generated.


vim +/misc_cg_res_total_usage +98 include/linux/misc_cgroup.h

a72232eabdfcfe Vipin Sharma 2021-03-29   97  
a72232eabdfcfe Vipin Sharma 2021-03-29  @98  unsigned long misc_cg_res_total_usage(enum misc_res_type type)
a72232eabdfcfe Vipin Sharma 2021-03-29   99  {
a72232eabdfcfe Vipin Sharma 2021-03-29  100  	return 0;
a72232eabdfcfe Vipin Sharma 2021-03-29  101  }
a72232eabdfcfe Vipin Sharma 2021-03-29  102  

:::::: The code at line 98 was first introduced by commit
:::::: a72232eabdfcfe365a05a3eb392288b78d25a5ca cgroup: Add misc cgroup controller

:::::: TO: Vipin Sharma <vipinsh@xxxxxxxxxx>
:::::: CC: Tejun Heo <tj@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux