Hi Bharata, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on v5.11] [cannot apply to powerpc/next next-20210212] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Bharata-B-Rao/Support-for-H_RPT_INVALIDATE-in-PowerPC-KVM/20210215-143815 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next config: powerpc64-randconfig-r005-20210215 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476) 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://github.com/0day-ci/linux/commit/2a2c1320dc2bc67ec962721c39e7639cc1abfa9d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Bharata-B-Rao/Support-for-H_RPT_INVALIDATE-in-PowerPC-KVM/20210215-143815 git checkout 2a2c1320dc2bc67ec962721c39e7639cc1abfa9d # 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 All errors (new ones prefixed by >>): >> arch/powerpc/mm/book3s64/radix_tlb.c:399:20: error: unused function '_tlbie_pid_lpid' [-Werror,-Wunused-function] static inline void _tlbie_pid_lpid(unsigned long pid, unsigned long lpid, ^ >> arch/powerpc/mm/book3s64/radix_tlb.c:643:20: error: unused function '_tlbie_va_range_lpid' [-Werror,-Wunused-function] static inline void _tlbie_va_range_lpid(unsigned long start, unsigned long end, ^ 2 errors generated. vim +/_tlbie_pid_lpid +399 arch/powerpc/mm/book3s64/radix_tlb.c 398 > 399 static inline void _tlbie_pid_lpid(unsigned long pid, unsigned long lpid, 400 unsigned long ric) 401 { 402 asm volatile("ptesync" : : : "memory"); 403 404 /* 405 * Workaround the fact that the "ric" argument to __tlbie_pid 406 * must be a compile-time contraint to match the "i" constraint 407 * in the asm statement. 408 */ 409 switch (ric) { 410 case RIC_FLUSH_TLB: 411 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_TLB); 412 fixup_tlbie_pid_lpid(pid, lpid); 413 break; 414 case RIC_FLUSH_PWC: 415 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); 416 break; 417 case RIC_FLUSH_ALL: 418 default: 419 __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_ALL); 420 fixup_tlbie_pid_lpid(pid, lpid); 421 } 422 asm volatile("eieio; tlbsync; ptesync" : : : "memory"); 423 } 424 struct tlbiel_pid { 425 unsigned long pid; 426 unsigned long ric; 427 }; 428 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org