Re: [PATCH v3] scsi: ufs: core: call hibern8 notify when hibern8 cmd failed

kernel test robot
2026-05-02T10:05:43Z

Hi Hongjie,

kernel test robot noticed the following build warnings:

[auto build test WARNING on jejb-scsi/for-next]
[also build test WARNING on mkp-scsi/for-next linus/master v7.1-rc1 next-20260430]
[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/Hongjie-Fang/scsi-ufs-core-call-hibern8-notify-when-hibern8-cmd-failed/20260501-050358
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
patch link: https://lore.kernel.org/r/20260430042212.3712251-1-hongjiefang%40asrmicro.com
patch subject: [PATCH v3] scsi: ufs: core: call hibern8 notify when hibern8 cmd failed
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260502/202605021742.XyNEfM7G-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260502/202605021742.XyNEfM7G-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605021742.XyNEfM7G-lkp@intel.com/

All warnings (new ones prefixed by >>):

drivers/ufs/host/ufs-exynos.c: In function 'exynos_ufs_hce_enable_notify':
>> drivers/ufs/host/ufs-exynos.c:1614:9: warning: enumeration value 'ROLLBACK_CHANGE' not handled in switch [-Wswitch]
1614 | switch (status) {
| ^~~~~~
drivers/ufs/host/ufs-exynos.c: In function 'exynos_ufs_link_startup_notify':
drivers/ufs/host/ufs-exynos.c:1654:9: warning: enumeration value 'ROLLBACK_CHANGE' not handled in switch [-Wswitch]
1654 | switch (status) {
| ^~~~~~
drivers/ufs/host/ufs-exynos.c: In function 'exynos_ufs_pwr_change_notify':
drivers/ufs/host/ufs-exynos.c:1687:9: warning: enumeration value 'ROLLBACK_CHANGE' not handled in switch [-Wswitch]
1687 | switch (status) {
| ^~~~~~

vim +/ROLLBACK_CHANGE +1614 drivers/ufs/host/ufs-exynos.c

55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1607
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1608 static int exynos_ufs_hce_enable_notify(struct ufs_hba *hba,
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1609 enum ufs_notify_change_status status)
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1610 {
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1611 struct exynos_ufs *ufs = ufshcd_get_variant(hba);
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1612 int ret = 0;
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1613
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 @1614 switch (status) {
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1615 case PRE_CHANGE:
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1616 /*
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1617 * The maximum segment size must be set after scsi_host_alloc()
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1618 * has been called and before LUN scanning starts
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1619 * (ufshcd_async_scan()). Note: this callback may also be called
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1620 * from other functions than ufshcd_init().
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1621 */
c96499fcb403b18 drivers/ufs/host/ufs-exynos.c Eric Biggers 2024-07-08 1622 hba->host->max_segment_size = DATA_UNIT_SIZE;
9a80bc5debf74b0 drivers/ufs/host/ufs-exynos.c Bart Van Assche 2023-01-12 1623
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1624 if (ufs->drv_data->pre_hce_enable) {
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1625 ret = ufs->drv_data->pre_hce_enable(ufs);
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1626 if (ret)
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1627 return ret;
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1628 }
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1629
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1630 ret = exynos_ufs_host_reset(hba);
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1631 if (ret)
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1632 return ret;
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1633 exynos_ufs_dev_hw_reset(hba);
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1634 break;
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1635 case POST_CHANGE:
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1636 exynos_ufs_calc_pwm_clk_div(ufs);
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1637 if (!(ufs->opts & EXYNOS_UFS_OPT_BROKEN_AUTO_CLK_CTRL))
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1638 exynos_ufs_enable_auto_ctrl_hcc(ufs);
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1639
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1640 if (ufs->drv_data->post_hce_enable)
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1641 ret = ufs->drv_data->post_hce_enable(ufs);
52e5035f7b079be drivers/scsi/ufs/ufs-exynos.c Chanho Park 2021-10-18 1642
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1643 break;
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1644 }
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1645
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1646 return ret;
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1647 }
55f4b1f73631a08 drivers/scsi/ufs/ufs-exynos.c Alim Akhtar 2020-05-28 1648

--
0-DAY CI Kernel Test Service