[PATCH v3] scsi: ufs: mediatek: Guard runtime PM functions

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Tue Feb 21 05:53:31 PST 2023


Il 21/02/23 12:38, Stephen Zhang ha scritto:
> From: Shida Zhang <zhangshida at kylinos.cn>
> 
> In a configuration with CONFIG_SCSI_UFS_MEDIATEK set to 'm' and
> CONFIG_PM set to 'n', errors occur at compile time:
> 
> ====
> ../drivers/ufs/host/ufs-mediatek.c: In function ‘ufs_mtk_runtime_suspend’:
> ../drivers/ufs/host/ufs-mediatek.c:1621:8: error: implicit declaration of function ‘ufshcd_runtime_suspend’; did you mean ‘ufs_mtk_runtime_suspend’? [-Werror=implicit-function-declaration]
> ../drivers/ufs/host/ufs-mediatek.c: In function ‘ufs_mtk_runtime_resume’:
> ../drivers/ufs/host/ufs-mediatek.c:1636:9: error: implicit declaration of function ‘ufshcd_runtime_resume’; did you mean ‘ufs_mtk_runtime_resume’? [-Werror=implicit-function-declaration]
> ====
> 
> Fix these errors by guarding the runtime PM functions with CONFIG_PM.
> 
> Reported-by: k2ci <kernel-bot at kylinos.cn>
> Signed-off-by: Shida Zhang <zhangshida at kylinos.cn>
> Reviewed-by: Manivannan Sadhasivam <mani at kernel.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogiaocchino.delregno at collabora.com>





More information about the linux-arm-kernel mailing list