scsi: ufs: make undeclared functions static
authorSujit Reddy Thumma <sthumma@codeaurora.org>
Wed, 23 Jul 2014 06:31:11 +0000 (09:31 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:06 +0000 (17:17 -0400)
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>
drivers/scsi/ufs/ufshcd.c

index d41233914336a8c7267d87cb31a75b35fa350a63..a450407a56ee0a8f79c3465ef33f9df3b2755a10 100644 (file)
@@ -1314,7 +1314,7 @@ out:
  * 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)
 {
@@ -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);
 
This page took 0.041035 seconds and 5 git commands to generate.