scsi: ufs: fix compilation errors if debugfs is disabled
This change fixes the compilation errors seen when DEBUG_FS is disabled. Change-Id: I15ba780ddfd3f6238bdd0434f1769c2986ec832f Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
parent
4ce2e9853e
commit
ee1ed9411a
1 changed files with 4 additions and 0 deletions
|
@ -1001,10 +1001,14 @@ static inline bool ufshcd_is_hs_mode(struct ufs_pa_layer_attr *pwr_info)
|
|||
pwr_info->pwr_tx == FASTAUTO_MODE);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static inline void ufshcd_init_req_stats(struct ufs_hba *hba)
|
||||
{
|
||||
memset(hba->ufs_stats.req_stats, 0, sizeof(hba->ufs_stats.req_stats));
|
||||
}
|
||||
#else
|
||||
static inline void ufshcd_init_req_stats(struct ufs_hba *hba) {}
|
||||
#endif
|
||||
|
||||
#define ASCII_STD true
|
||||
#define UTF16_STD false
|
||||
|
|
Loading…
Add table
Reference in a new issue