浏览代码

scsi: ufs: make undeclared functions static

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>
Sujit Reddy Thumma 11 年之前
父节点
当前提交
7289f98354
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      drivers/scsi/ufs/ufshcd.c

+ 3 - 2
drivers/scsi/ufs/ufshcd.c

@@ -1314,7 +1314,7 @@ out:
  * 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(struct ufs_hba *hba,
+static int ufshcd_query_descriptor(struct ufs_hba *hba,
 			enum query_opcode opcode, enum desc_idn idn, u8 index,
 			enum query_opcode opcode, enum desc_idn idn, u8 index,
 			u8 selector, u8 *desc_buf, int *buf_len)
 			u8 selector, u8 *desc_buf, int *buf_len)
 {
 {
@@ -2018,7 +2018,8 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
  * Change queue depth according to the reason and make sure
  * Change queue depth according to the reason and make sure
  * the max. limits are not crossed.
  * 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);
 	struct ufs_hba *hba = shost_priv(sdev->host);