lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[morse:mpam/snapshot/v5.15 9/139] arch/x86/kernel/cpu/resctrl/core.c:400:6: warning: no previous prototype for function 'setup_default_ctrlval'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head: ce3629841262f725a5f3a327403fcaf0e604a85e
commit: c40ac46dd98eac3ed1ab60d72d54344a4ead0e92 [9/139] x86/resctrl: Remove architecture copy of mbps_val
config: x86_64-buildonly-randconfig-r001-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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=c40ac46dd98eac3ed1ab60d72d54344a4ead0e92
git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/snapshot/v5.15
git checkout c40ac46dd98eac3ed1ab60d72d54344a4ead0e92
# 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:400:6: warning: no previous prototype for function 'setup_default_ctrlval' [-Wmissing-prototypes]
void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
^
arch/x86/kernel/cpu/resctrl/core.c:400:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void setup_default_ctrlval(struct rdt_resource *r, u32 *dc)
^
static
arch/x86/kernel/cpu/resctrl/core.c:414: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:414: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
2 warnings generated.


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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-13 02:48    [W:0.057 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site