[powerpc:next-test 146/304] arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function 'update_current_thread_amr'
kernel test robot
lkp at intel.com
Wed Dec 16 23:27:06 AEDT 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
head: c15d1f9d03a0f4f68bf52dffdd541c8054e6de35
commit: 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153 [146/304] powerpc/book3s64/pkeys: Don't update SPRN_AMR when in kernel mode.
config: powerpc-randconfig-r034-20201216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 71601d2ac9954cb59c443cb3ae442cb106df35d4)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
git fetch --no-tags powerpc next-test
git checkout 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function 'update_current_thread_amr' [-Werror,-Wunused-function]
static inline void update_current_thread_amr(u64 value)
^
>> arch/powerpc/mm/book3s64/pkeys.c:289:20: error: unused function 'update_current_thread_iamr' [-Werror,-Wunused-function]
static inline void update_current_thread_iamr(u64 value)
^
2 errors generated.
vim +/update_current_thread_amr +284 arch/powerpc/mm/book3s64/pkeys.c
283
> 284 static inline void update_current_thread_amr(u64 value)
285 {
286 current->thread.regs->amr = value;
287 }
288
> 289 static inline void update_current_thread_iamr(u64 value)
290 {
291 if (!likely(pkey_execute_disable_supported))
292 return;
293
294 current->thread.regs->iamr = value;
295 }
296
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 42892 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20201216/edbba70b/attachment-0001.gz>
More information about the Linuxppc-dev
mailing list