[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202103240622.1ArWaW3l-lkp@intel.com>
Date: Wed, 24 Mar 2021 06:07:40 +0800
From: kernel test robot <lkp@...el.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>,
Sandipan Das <sandipan@...ux.ibm.com>
Subject: arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function
'update_current_thread_amr'
Hi Aneesh,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7acac4b3196caee5e21fb5ea53f8bc124e6a16fc
commit: 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153 powerpc/book3s64/pkeys: Don't update SPRN_AMR when in kernel mode.
date: 4 months ago
config: powerpc64-randconfig-r016-20210323 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 78a65cd945d006ff02f9d24d9cc20a302ed93b08)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.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
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (32448 bytes)
Powered by blists - more mailing lists