Hi Anjana, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on jejb-scsi/for-next linus/master v6.1 next-20221220] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Anjana-Hari/scsi-ufs-Add-hibernation-callbacks/20221222-011920 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next patch link: https://lore.kernel.org/r/20221221171222.19699-2-quic_ahari%40quicinc.com patch subject: [PATCH 1/2] scsi: ufs: core: Add hibernation callbacks config: i386-randconfig-a015-20221219 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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 # https://github.com/intel-lab-lkp/linux/commit/f323382d9a7789fabe32275640cf8bebbc569c5d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Anjana-Hari/scsi-ufs-Add-hibernation-callbacks/20221222-011920 git checkout f323382d9a7789fabe32275640cf8bebbc569c5d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/ufs/core/ufshcd.c:9650:8: error: implicit declaration of function 'ufshcd_system_suspend' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = ufshcd_system_suspend(dev); ^ >> drivers/ufs/core/ufshcd.c:9671:8: error: implicit declaration of function 'ufshcd_system_resume' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = ufshcd_system_resume(dev); ^ drivers/ufs/core/ufshcd.c:9671:8: note: did you mean 'ufshcd_system_restore'? drivers/ufs/core/ufshcd.c:9665:5: note: 'ufshcd_system_restore' declared here int ufshcd_system_restore(struct device *dev) ^ drivers/ufs/core/ufshcd.c:9690:8: error: implicit declaration of function 'ufshcd_system_resume' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ret = ufshcd_system_resume(dev); ^ 3 errors generated. vim +/ufshcd_system_suspend +9650 drivers/ufs/core/ufshcd.c 9639 9640 struct ufs_hba *hba = dev_get_drvdata(dev); 9641 int ret = 0; 9642 9643 /* 9644 * Run time resume the controller to make sure 9645 * the PM work queue threads do not try to resume 9646 * the child (scsi host), which leads to errors as 9647 * the controller is not yet resumed. 9648 */ 9649 pm_runtime_get_sync(hba->dev); > 9650 ret = ufshcd_system_suspend(dev); 9651 pm_runtime_put_sync(hba->dev); 9652 9653 /* 9654 * Ensure no runtime PM operations take 9655 * place in the hibernation and restore sequence 9656 * on successful freeze operation. 9657 */ 9658 if (!ret) 9659 pm_runtime_disable(hba->dev); 9660 9661 return 0; 9662 } 9663 EXPORT_SYMBOL_GPL(ufshcd_system_freeze); 9664 9665 int ufshcd_system_restore(struct device *dev) 9666 { 9667 struct ufs_hba *hba = dev_get_drvdata(dev); 9668 int ret = 0; 9669 9670 hba->restore = true; > 9671 ret = ufshcd_system_resume(dev); 9672 9673 /* 9674 * Now any runtime PM operations can be 9675 * allowed on successful restore operation 9676 */ 9677 if (!ret) 9678 pm_runtime_enable(hba->dev); 9679 9680 return ret; 9681 } 9682 EXPORT_SYMBOL_GPL(ufshcd_system_restore); 9683 -- 0-DAY CI Kernel Test Service https://01.org/lkp