Hi Daejun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on scsi/for-next]
[also build test WARNING on linus/master v5.12-rc2 next-20210312]
[cannot apply to mkp-scsi/for-next]
[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/Daejun-Park/scsi-ufs-Introduce-H...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: h8300-randconfig-s032-20210312 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
#
https://github.com/0day-ci/linux/commit/a13bf626769280445ff1c6c5b0ab8dffb...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Daejun-Park/scsi-ufs-Introduce-HPB-feature/20210312-162129
git checkout a13bf626769280445ff1c6c5b0ab8dffb9439aa8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/ufs/ufshpb.c: In function 'ufshpb_execute_umap_req':
> drivers/scsi/ufs/ufshpb.c:854:24: warning: variable 'q'
set but not used [-Wunused-but-set-variable]
854 | struct request_queue *q;
| ^
vim +/q +854 drivers/scsi/ufs/ufshpb.c
849
850 static int ufshpb_execute_umap_req(struct ufshpb_lu *hpb,
851 struct ufshpb_req *umap_req,
852 struct ufshpb_region *rgn)
853 {
854 struct request_queue *q;
855 struct request *req;
856 struct scsi_request *rq;
857
858 q = hpb->sdev_ufs_lu->request_queue;
859 req = umap_req->req;
860 req->timeout = 0;
861 req->end_io_data = (void *)umap_req;
862 rq = scsi_req(req);
863 ufshpb_set_unmap_cmd(rq->cmd, rgn);
864 rq->cmd_len = HPB_WRITE_BUFFER_CMD_LENGTH;
865
866 blk_execute_rq_nowait(NULL, req, 1, ufshpb_umap_req_compl_fn);
867
868 return 0;
869 }
870
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org