[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111061337.ALisPIPC-lkp@intel.com>
Date: Sat, 6 Nov 2021 13:58:50 +0800
From: kernel test robot <lkp@...el.com>
To: Bart Van Assche <bvanassche@...gle.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Jaegeuk Kim <jaegeuk@...nel.org>
Subject: drivers/scsi/ufs/ufshcd.c:2635:20: error: unused function
'is_rpmb_wlun'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: edc0596cc04bf0ac3a69c66e994d3ff8b650ff71 scsi: ufs: core: Stop clearing UNIT ATTENTIONS
date: 5 weeks ago
config: riscv-buildonly-randconfig-r005-20211010 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 903b30fea21f99d8f48fde4defcc838970e30ee1)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edc0596cc04bf0ac3a69c66e994d3ff8b650ff71
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout edc0596cc04bf0ac3a69c66e994d3ff8b650ff71
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
>> drivers/scsi/ufs/ufshcd.c:2635:20: error: unused function 'is_rpmb_wlun' [-Werror,-Wunused-function]
static inline bool is_rpmb_wlun(struct scsi_device *sdev)
^
1 error generated.
vim +/is_rpmb_wlun +2635 drivers/scsi/ufs/ufshcd.c
2a8fa600445c45 Subhash Jadavani 2014-09-25 2634
b294ff3e34490f Asutosh Das 2021-04-23 @2635 static inline bool is_rpmb_wlun(struct scsi_device *sdev)
b294ff3e34490f Asutosh Das 2021-04-23 2636 {
b294ff3e34490f Asutosh Das 2021-04-23 2637 return sdev->lun == ufshcd_upiu_wlun_to_scsi_wlun(UFS_UPIU_RPMB_WLUN);
b294ff3e34490f Asutosh Das 2021-04-23 2638 }
b294ff3e34490f Asutosh Das 2021-04-23 2639
:::::: The code at line 2635 was first introduced by commit
:::::: b294ff3e34490f36233230e9ca70503d3924a6f3 scsi: ufs: core: Enable power management for wlun
:::::: TO: Asutosh Das <asutoshd@...eaurora.org>
:::::: CC: Martin K. Petersen <martin.petersen@...cle.com>
---
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" (48144 bytes)
Powered by blists - more mailing lists