]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset)
authorBart Van Assche <bvanassche@acm.org>
Tue, 5 May 2026 04:23:10 +0000 (06:23 +0200)
committerNiklas Cassel <cassel@kernel.org>
Mon, 1 Jun 2026 17:07:37 +0000 (19:07 +0200)
From Documentation/process/coding-style.rst:
In source files, separate functions with one blank line.  If the function
is exported, the **EXPORT** macro for it should follow immediately after
the closing function brace line.

Hence, move EXPORT_SYMBOL_GPL(ahci_do_softreset) to just below the
definition of the ahci_do_softreset() function.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libahci.c

index 7169e9e89034e5e44b1bcdf51ae5fe1ec4d267cb..0c5e5b29bce4cd6bc56571bbfdc4f05579800720 100644 (file)
@@ -1527,6 +1527,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
        ata_link_err(link, "softreset failed (%s)\n", reason);
        return rc;
 }
+EXPORT_SYMBOL_GPL(ahci_do_softreset);
 
 int ahci_check_ready(struct ata_link *link)
 {
@@ -1544,7 +1545,6 @@ static int ahci_softreset(struct ata_link *link, unsigned int *class,
 
        return ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
 }
-EXPORT_SYMBOL_GPL(ahci_do_softreset);
 
 static int ahci_bad_pmp_check_ready(struct ata_link *link)
 {