From: Bart Van Assche Date: Tue, 5 May 2026 04:23:10 +0000 (+0200) Subject: ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4034ae06b7c93d159318663349d372dfe851307;p=thirdparty%2Fkernel%2Flinux.git ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset) 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 Reviewed-by: Damien Le Moal Signed-off-by: Niklas Cassel --- diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 7169e9e89034e..0c5e5b29bce4c 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -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) {