Skip to content

Commit f4034ae

Browse files
bvanasschefloatious
authored andcommitted
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 <bvanassche@acm.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent c4086c6 commit f4034ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/libahci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,6 +1527,7 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
15271527
ata_link_err(link, "softreset failed (%s)\n", reason);
15281528
return rc;
15291529
}
1530+
EXPORT_SYMBOL_GPL(ahci_do_softreset);
15301531

15311532
int ahci_check_ready(struct ata_link *link)
15321533
{
@@ -1544,7 +1545,6 @@ static int ahci_softreset(struct ata_link *link, unsigned int *class,
15441545

15451546
return ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready);
15461547
}
1547-
EXPORT_SYMBOL_GPL(ahci_do_softreset);
15481548

15491549
static int ahci_bad_pmp_check_ready(struct ata_link *link)
15501550
{

0 commit comments

Comments
 (0)