libata: make ata_sg_clean static over again
authorJason Yan <yanaijie@huawei.com>
Fri, 10 Mar 2017 02:05:40 +0000 (10:05 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 13 Mar 2017 17:08:26 +0000 (13:08 -0400)
Fixes the following sparse warning:

drivers/ata/libata-core.c:4913:6: warning: symbol 'ata_sg_clean' was not
declared. Should it be static?

Signed-off-by: Jason Yan <yanaijie@huawei.com>
drivers/ata/libata-core.c

index 55d3c8b8b35b37037fa1567983d050295c9a8a21..2d83b8c7596567a020300d8dd1aeefeb33a6a055 100644 (file)
@@ -4910,7 +4910,7 @@ void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
  *     LOCKING:
  *     spin_lock_irqsave(host lock)
  */
-void ata_sg_clean(struct ata_queued_cmd *qc)
+static void ata_sg_clean(struct ata_queued_cmd *qc)
 {
        struct ata_port *ap = qc->ap;
        struct scatterlist *sg = qc->sg;