diff mbox

[2/2] scsi: ufs: fix sparse warning

Message ID 1411986763-7389-2-git-send-email-draviv@codeaurora.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Dolev Raviv Sept. 29, 2014, 10:32 a.m. UTC
This patch fixes newly introduced sparse warning, introduced by
UFS power management series.

Sparse warning:
>> drivers/scsi/ufs/ufshcd.c:1867:5: sparse: symbol
	'ufshcd_uic_pwr_ctrl' was not declared. Should it be static?
>> drivers/scsi/ufs/ufshcd.c:2025:5: sparse: symbol
	'ufshcd_change_power_mode' was not declared. Should it be static?

Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
diff mbox

Patch

diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 5c78c3d..497c38a 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -2146,7 +2146,7 @@  EXPORT_SYMBOL_GPL(ufshcd_dme_get_attr);
  *
  * Returns 0 on success, non-zero value on failure
  */
-int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd)
+static int ufshcd_uic_pwr_ctrl(struct ufs_hba *hba, struct uic_command *cmd)
 {
 	struct completion uic_async_done;
 	unsigned long flags;
@@ -2309,7 +2309,7 @@  static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba)
 	return 0;
 }
 
-int ufshcd_change_power_mode(struct ufs_hba *hba,
+static int ufshcd_change_power_mode(struct ufs_hba *hba,
 			     struct ufs_pa_layer_attr *pwr_mode)
 {
 	int ret;