All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: James Morse <james.morse@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [morse:mpam/resctrl_monitors_in_bytes/v2 6/23] arch/x86/kernel/cpu/resctrl/core.c:417:6: warning: no previous prototype for function 'domain_free'
Date: Sat, 9 Oct 2021 00:33:35 +0800	[thread overview]
Message-ID: <202110090033.fJBFosXT-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/resctrl_monitors_in_bytes/v2
head:   fd62aabfdf309ee282f1fb717eed9c027ada76ae
commit: 58a2a784a61e4c1030db7b5a3e3db5494347a3cd [6/23] x86/resctrl: Group struct rdt_hw_domain cleanup
config: x86_64-randconfig-r034-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ed2e8e04ff42eb4d8009999ae1fd341a30bf6c0)
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://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=58a2a784a61e4c1030db7b5a3e3db5494347a3cd
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/resctrl_monitors_in_bytes/v2
        git checkout 58a2a784a61e4c1030db7b5a3e3db5494347a3cd
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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/x86/kernel/cpu/resctrl/core.c:417:6: warning: no previous prototype for function 'domain_free' [-Wmissing-prototypes]
   void domain_free(struct rdt_hw_domain *hw_dom)
        ^
   arch/x86/kernel/cpu/resctrl/core.c:417:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void domain_free(struct rdt_hw_domain *hw_dom)
   ^
   static 
   1 warning generated.


vim +/domain_free +417 arch/x86/kernel/cpu/resctrl/core.c

   416	
 > 417	void domain_free(struct rdt_hw_domain *hw_dom)
   418	{
   419		kfree(hw_dom->ctrl_val);
   420		kfree(hw_dom->mbps_val);
   421		kfree(hw_dom);
   422	}
   423	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [morse:mpam/resctrl_monitors_in_bytes/v2 6/23] arch/x86/kernel/cpu/resctrl/core.c:417:6: warning: no previous prototype for function 'domain_free'
Date: Sat, 09 Oct 2021 00:33:35 +0800	[thread overview]
Message-ID: <202110090033.fJBFosXT-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/resctrl_monitors_in_bytes/v2
head:   fd62aabfdf309ee282f1fb717eed9c027ada76ae
commit: 58a2a784a61e4c1030db7b5a3e3db5494347a3cd [6/23] x86/resctrl: Group struct rdt_hw_domain cleanup
config: x86_64-randconfig-r034-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ed2e8e04ff42eb4d8009999ae1fd341a30bf6c0)
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://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=58a2a784a61e4c1030db7b5a3e3db5494347a3cd
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/resctrl_monitors_in_bytes/v2
        git checkout 58a2a784a61e4c1030db7b5a3e3db5494347a3cd
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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/x86/kernel/cpu/resctrl/core.c:417:6: warning: no previous prototype for function 'domain_free' [-Wmissing-prototypes]
   void domain_free(struct rdt_hw_domain *hw_dom)
        ^
   arch/x86/kernel/cpu/resctrl/core.c:417:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void domain_free(struct rdt_hw_domain *hw_dom)
   ^
   static 
   1 warning generated.


vim +/domain_free +417 arch/x86/kernel/cpu/resctrl/core.c

   416	
 > 417	void domain_free(struct rdt_hw_domain *hw_dom)
   418	{
   419		kfree(hw_dom->ctrl_val);
   420		kfree(hw_dom->mbps_val);
   421		kfree(hw_dom);
   422	}
   423	

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

             reply	other threads:[~2021-10-08 16:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-08 16:33 kernel test robot [this message]
2021-10-08 16:33 ` [morse:mpam/resctrl_monitors_in_bytes/v2 6/23] arch/x86/kernel/cpu/resctrl/core.c:417:6: warning: no previous prototype for function 'domain_free' kernel test robot

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=202110090033.fJBFosXT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=james.morse@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /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 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.