Skip to content

Commit

Permalink
scsi: ufs: make undeclared functions static
Browse files Browse the repository at this point in the history
Make undeclared functions static to suppress warnings
from sparse tool.

Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Sujit Reddy Thumma authored and Christoph Hellwig committed Jul 25, 2014
1 parent e090cc9 commit 7289f98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/ufs/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ static int ufshcd_query_attr(struct ufs_hba *hba, enum query_opcode opcode,
* The buf_len parameter will contain, on return, the length parameter
* received on the response.
*/
int ufshcd_query_descriptor(struct ufs_hba *hba,
static int ufshcd_query_descriptor(struct ufs_hba *hba,
enum query_opcode opcode, enum desc_idn idn, u8 index,
u8 selector, u8 *desc_buf, int *buf_len)
{
Expand Down Expand Up @@ -2018,7 +2018,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
* Change queue depth according to the reason and make sure
* the max. limits are not crossed.
*/
int ufshcd_change_queue_depth(struct scsi_device *sdev, int depth, int reason)
static int ufshcd_change_queue_depth(struct scsi_device *sdev,
int depth, int reason)
{
struct ufs_hba *hba = shost_priv(sdev->host);

Expand Down

0 comments on commit 7289f98

Please sign in to comment.