lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[morse:mpam/snapshot/v5.15 119/139] arch/arm64/include/asm/mpam.h:110:6: warning: variable 'regval' set but not used
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head: ce3629841262f725a5f3a327403fcaf0e604a85e
commit: ec95ea0172936108af0216efb0e4f28402eaf1c6 [119/139] arm64: mpam: Add helpers to change a tasks and cpu mpam partid/pmg values
config: arm64-randconfig-r012-20211115 (https://download.01.org/0day-ci/archive/20211125/202111251807.ljdrXC4V-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=ec95ea0172936108af0216efb0e4f28402eaf1c6
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 ec95ea0172936108af0216efb0e4f28402eaf1c6
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64

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 >>):

In file included from arch/arm64/kernel/process.c:51:
>> arch/arm64/include/asm/mpam.h:110:6: warning: variable 'regval' set but not used [-Wunused-but-set-variable]
u64 regval;
^
arch/arm64/include/asm/mpam.h:133:6: warning: variable 'regval' set but not used [-Wunused-but-set-variable]
u64 regval = mpam_get_regval(tsk);
^
2 warnings generated.


vim +/regval +110 arch/arm64/include/asm/mpam.h

105
106 static inline void mpam_set_task_partid_pmg(struct task_struct *tsk,
107 u16 partid_d, u16 partid_i,
108 u8 pmg_d, u8 pmg_i)
109 {
> 110 u64 regval;
111
112 regval = FIELD_PREP(MPAM_SYSREG_PARTID_D, partid_d);
113 regval |= FIELD_PREP(MPAM_SYSREG_PARTID_I, partid_i);
114 regval |= FIELD_PREP(MPAM_SYSREG_PMG_D, pmg_d);
115 regval |= FIELD_PREP(MPAM_SYSREG_PMG_I, pmg_i);
116

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

\
 
 \ /
  Last update: 2021-11-25 11:34    [W:0.021 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site