ata: ahci_mvebu: ahci_mvebu_stop_engine() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 Jun 2018 06:56:34 +0000 (06:56 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 18 Jun 2018 18:31:07 +0000 (11:31 -0700)
Fixes the following sparse warning:

drivers/ata/ahci_mvebu.c:85:5: warning:
 symbol 'ahci_mvebu_stop_engine' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_mvebu.c

index 0045dac..72d90b4 100644 (file)
@@ -82,7 +82,7 @@ static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv)
  *
  * Return: 0 on success; Error code otherwise.
  */
-int ahci_mvebu_stop_engine(struct ata_port *ap)
+static int ahci_mvebu_stop_engine(struct ata_port *ap)
 {
        void __iomem *port_mmio = ahci_port_base(ap);
        u32 tmp, port_fbs;