Commit 26cf9155 authored by Tomas Winkler's avatar Tomas Winkler Committed by Martin K. Petersen

scsi: ufs: ufshcd_query_descriptor_retry should be static

Fix the following compilation warning:

drivers/scsi/ufs/ufshcd.c:2076:5: warning: no previous prototype for
 ufshcd_query_descriptor_retry  [-Wmissing-prototypes]

Also do not export the function, it should not be used out of ufs
context.
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b6f0ec36
...@@ -2410,9 +2410,11 @@ static int __ufshcd_query_descriptor(struct ufs_hba *hba, ...@@ -2410,9 +2410,11 @@ static int __ufshcd_query_descriptor(struct ufs_hba *hba,
* The buf_len parameter will contain, on return, the length parameter * The buf_len parameter will contain, on return, the length parameter
* received on the response. * received on the response.
*/ */
int ufshcd_query_descriptor_retry(struct ufs_hba *hba, static int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
enum query_opcode opcode, enum desc_idn idn, u8 index, enum query_opcode opcode,
u8 selector, u8 *desc_buf, int *buf_len) enum desc_idn idn, u8 index,
u8 selector,
u8 *desc_buf, int *buf_len)
{ {
int err; int err;
int retries; int retries;
...@@ -2426,7 +2428,6 @@ int ufshcd_query_descriptor_retry(struct ufs_hba *hba, ...@@ -2426,7 +2428,6 @@ int ufshcd_query_descriptor_retry(struct ufs_hba *hba,
return err; return err;
} }
EXPORT_SYMBOL(ufshcd_query_descriptor_retry);
/** /**
* ufshcd_read_desc_param - read the specified descriptor parameter * ufshcd_read_desc_param - read the specified descriptor parameter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment