From aa07d6b28d2ce69654e8da4e73fa7868dc7ce604 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 11 Apr 2024 09:43:13 -0700 Subject: [PATCH] ANDROID: scsi: ufs: Unexport ufshcd_mcq_poll_cqe_nolock() Unexport this function because it is not used outside the UFSHCI core driver and because it is not possible to use this function from outside the UFSHCI core driver without triggering a race condition. Bug: 312786487 Bug: 326329246 Bug: 333069246 Bug: 333317508 Change-Id: I1bb504b0310c3618db94e9401ff4f7e13633d6a0 Signed-off-by: Bart Van Assche --- drivers/ufs/core/ufs-mcq.c | 1 - include/ufs/ufshcd.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c index 202ff71e1b58..cf06702e1b8f 100644 --- a/drivers/ufs/core/ufs-mcq.c +++ b/drivers/ufs/core/ufs-mcq.c @@ -294,7 +294,6 @@ unsigned long ufshcd_mcq_poll_cqe_nolock(struct ufs_hba *hba, return completed_reqs; } -EXPORT_SYMBOL_GPL(ufshcd_mcq_poll_cqe_nolock); unsigned long ufshcd_mcq_poll_cqe_lock(struct ufs_hba *hba, struct ufs_hw_queue *hwq) diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h index b381daaac32c..91f11f37b390 100644 --- a/include/ufs/ufshcd.h +++ b/include/ufs/ufshcd.h @@ -1298,8 +1298,6 @@ void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val); void ufshcd_hba_stop(struct ufs_hba *hba); void ufshcd_schedule_eh_work(struct ufs_hba *hba); void ufshcd_mcq_write_cqis(struct ufs_hba *hba, u32 val, int i); -unsigned long ufshcd_mcq_poll_cqe_nolock(struct ufs_hba *hba, - struct ufs_hw_queue *hwq); void ufshcd_mcq_enable_esi(struct ufs_hba *hba); void ufshcd_mcq_config_esi(struct ufs_hba *hba, struct msi_msg *msg);