Linux cgroups development
 help / color / mirror / Atom feed
From: kernel test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Vipin Sharma <vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Cc: kbuild-all-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org,
	clang-built-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	David Rientjes <rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Subject: [cgroup:for-next 3/3] include/linux/misc_cgroup.h:98:15: warning: no previous prototype for function 'misc_cg_res_total_usage'
Date: Mon, 5 Apr 2021 05:11:26 +0800	[thread overview]
Message-ID: <202104050523.t4Om6TmY-lkp@intel.com> (raw)

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

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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

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-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
:::::: CC: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27603 bytes --]

             reply	other threads:[~2021-04-04 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-04 21:11 kernel test robot [this message]
     [not found] ` <202104050523.t4Om6TmY-lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2021-04-04 22:32   ` [cgroup:for-next 3/3] include/linux/misc_cgroup.h:98:15: warning: no previous prototype for function 'misc_cg_res_total_usage' Tejun Heo
     [not found]     ` <YGo+f3XoA4CtRAPt-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2021-04-05  0:27       ` Vipin Sharma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104050523.t4Om6TmY-lkp@intel.com \
    --to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=clang-built-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    --cc=kbuild-all-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org \
    --cc=rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=vipinsh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox