All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [morse:mpam/snapshot/v5.16 9/137] arch/x86/kernel/cpu/resctrl/core.c:400:6: warning: no previous prototype for 'setup_default_ctrlval'
Date: Wed, 26 Jan 2022 03:17:46 +0800	[thread overview]
Message-ID: <202201260259.D09DY2rL-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.16
head:   364c1c42b229912132e1615c2ce15be7154e2156
commit: 1763d5f108c2b9e4fd2e055884b8e290b75fa5f0 [9/137] x86/resctrl: Remove architecture copy of mbps_val
config: i386-randconfig-m021-20220124 (https://download.01.org/0day-ci/archive/20220126/202201260259.D09DY2rL-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=1763d5f108c2b9e4fd2e055884b8e290b75fa5f0
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.16
        git checkout 1763d5f108c2b9e4fd2e055884b8e290b75fa5f0
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/resctrl/

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:400:6: warning: no previous prototype for 'setup_default_ctrlval' [-Wmissing-prototypes]
     400 | void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
         |      ^~~~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/cpu/resctrl/core.c:414:6: warning: no previous prototype for 'domain_free' [-Wmissing-prototypes]
     414 | void domain_free(struct rdt_hw_domain *hw_dom)
         |      ^~~~~~~~~~~


vim +/setup_default_ctrlval +400 arch/x86/kernel/cpu/resctrl/core.c

   399	
 > 400	void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
   401	{
   402		struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r);
   403		int i;
   404	
   405		/*
   406		 * Initialize the Control MSRs to having no control.
   407		 * For Cache Allocation: Set all bits in cbm
   408		 * For Memory Allocation: Set b/w requested to 100%
   409		 */
   410		for (i = 0; i < hw_res->num_closid; i++, dc++)
   411			*dc = r->default_ctrl;
   412	}
   413	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: James Morse <james.morse@arm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [morse:mpam/snapshot/v5.16 9/137] arch/x86/kernel/cpu/resctrl/core.c:400:6: warning: no previous prototype for 'setup_default_ctrlval'
Date: Wed, 26 Jan 2022 03:17:46 +0800	[thread overview]
Message-ID: <202201260259.D09DY2rL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.16
head:   364c1c42b229912132e1615c2ce15be7154e2156
commit: 1763d5f108c2b9e4fd2e055884b8e290b75fa5f0 [9/137] x86/resctrl: Remove architecture copy of mbps_val
config: i386-randconfig-m021-20220124 (https://download.01.org/0day-ci/archive/20220126/202201260259.D09DY2rL-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=1763d5f108c2b9e4fd2e055884b8e290b75fa5f0
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.16
        git checkout 1763d5f108c2b9e4fd2e055884b8e290b75fa5f0
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/resctrl/

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:400:6: warning: no previous prototype for 'setup_default_ctrlval' [-Wmissing-prototypes]
     400 | void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
         |      ^~~~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/cpu/resctrl/core.c:414:6: warning: no previous prototype for 'domain_free' [-Wmissing-prototypes]
     414 | void domain_free(struct rdt_hw_domain *hw_dom)
         |      ^~~~~~~~~~~


vim +/setup_default_ctrlval +400 arch/x86/kernel/cpu/resctrl/core.c

   399	
 > 400	void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
   401	{
   402		struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r);
   403		int i;
   404	
   405		/*
   406		 * Initialize the Control MSRs to having no control.
   407		 * For Cache Allocation: Set all bits in cbm
   408		 * For Memory Allocation: Set b/w requested to 100%
   409		 */
   410		for (i = 0; i < hw_res->num_closid; i++, dc++)
   411			*dc = r->default_ctrl;
   412	}
   413	

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

             reply	other threads:[~2022-01-25 19:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-25 19:17 kernel test robot [this message]
2022-01-25 19:17 ` [morse:mpam/snapshot/v5.16 9/137] arch/x86/kernel/cpu/resctrl/core.c:400:6: warning: no previous prototype for 'setup_default_ctrlval' 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=202201260259.D09DY2rL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.