summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_mvebu.c
diff options
context:
space:
mode:
authorWei Yongjun2018-06-06 08:56:34 +0200
committerTejun Heo2018-06-18 20:31:07 +0200
commit95ffcf471d05ec7c91993c91dea912f99dccfc26 (patch)
treec6780111002f34bc9f3ed04c986e4bf80a43cb3a /drivers/ata/ahci_mvebu.c
parentlibahci: Fix possible Spectre-v1 pmp indexing in ahci_led_store() (diff)
downloadkernel-qcow2-linux-95ffcf471d05ec7c91993c91dea912f99dccfc26.tar.gz
kernel-qcow2-linux-95ffcf471d05ec7c91993c91dea912f99dccfc26.tar.xz
kernel-qcow2-linux-95ffcf471d05ec7c91993c91dea912f99dccfc26.zip
ata: ahci_mvebu: ahci_mvebu_stop_engine() can be static
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>
Diffstat (limited to 'drivers/ata/ahci_mvebu.c')
-rw-r--r--drivers/ata/ahci_mvebu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c
index 0045dacd814b..72d90b4c3aae 100644
--- a/drivers/ata/ahci_mvebu.c
+++ b/drivers/ata/ahci_mvebu.c
@@ -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;