Commit bdbe5d2f authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Christoph Hellwig

scsi: ufs: make undeclared functions static

Make undeclared functions static and declare exported symbols
to suppress warnings from sparse tool.
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
Acked-by: default avatarVinayak Holikatti <vinholikatti@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent e8c8e82a
...@@ -1148,7 +1148,7 @@ static int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, ...@@ -1148,7 +1148,7 @@ static int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode,
* *
* Returns 0 for success, non-zero in case of failure * Returns 0 for success, non-zero in case of failure
*/ */
int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode, static int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
enum attr_idn idn, u8 index, u8 selector, u32 *attr_val) enum attr_idn idn, u8 index, u8 selector, u32 *attr_val)
{ {
struct ufs_query_req *request; struct ufs_query_req *request;
...@@ -1459,7 +1459,7 @@ EXPORT_SYMBOL_GPL(ufshcd_dme_get_attr); ...@@ -1459,7 +1459,7 @@ EXPORT_SYMBOL_GPL(ufshcd_dme_get_attr);
* *
* Returns 0 on success, non-zero value on failure * Returns 0 on success, non-zero value on failure
*/ */
int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode)
{ {
struct uic_command uic_cmd = {0}; struct uic_command uic_cmd = {0};
struct completion pwr_done; struct completion pwr_done;
......
...@@ -263,6 +263,8 @@ static inline void check_upiu_size(void) ...@@ -263,6 +263,8 @@ static inline void check_upiu_size(void)
GENERAL_UPIU_REQUEST_SIZE + QUERY_DESC_MAX_SIZE); GENERAL_UPIU_REQUEST_SIZE + QUERY_DESC_MAX_SIZE);
} }
extern int ufshcd_suspend(struct ufs_hba *hba, pm_message_t state);
extern int ufshcd_resume(struct ufs_hba *hba);
extern int ufshcd_runtime_suspend(struct ufs_hba *hba); extern int ufshcd_runtime_suspend(struct ufs_hba *hba);
extern int ufshcd_runtime_resume(struct ufs_hba *hba); extern int ufshcd_runtime_resume(struct ufs_hba *hba);
extern int ufshcd_runtime_idle(struct ufs_hba *hba); extern int ufshcd_runtime_idle(struct ufs_hba *hba);
......
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