Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset)
@ 2026-05-05  4:23 Bart Van Assche
  2026-05-05 13:29 ` Damien Le Moal
  2026-05-05 14:49 ` Niklas Cassel
  0 siblings, 2 replies; 3+ messages in thread
From: Bart Van Assche @ 2026-05-05  4:23 UTC (permalink / raw)
  To: Damien Le Moal; +Cc: Niklas Cassel, linux-ide, Bart Van Assche

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>
---
 drivers/ata/libahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index c79abdfcd7a9..99e85c767661 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)
 {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset)
  2026-05-05  4:23 [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset) Bart Van Assche
@ 2026-05-05 13:29 ` Damien Le Moal
  2026-05-05 14:49 ` Niklas Cassel
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2026-05-05 13:29 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: Niklas Cassel, linux-ide

On 2026/05/05 6:23, Bart Van Assche wrote:
> 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>

-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset)
  2026-05-05  4:23 [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset) Bart Van Assche
  2026-05-05 13:29 ` Damien Le Moal
@ 2026-05-05 14:49 ` Niklas Cassel
  1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-05-05 14:49 UTC (permalink / raw)
  To: Damien Le Moal, Bart Van Assche; +Cc: Niklas Cassel, linux-ide

On Tue, 05 May 2026 06:23:10 +0200, Bart Van Assche wrote:
> >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.
> ----------------------------------------------------------------------------
> 
> [...]


Modified the commit log to avoid the following checkpatch warnings while
applying:

ERROR: Invalid commit separator - some tools may have problems applying this
#8: 
----------------------------------------------------------------------------

WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#8: 
----------------------------------------------------------------------------

ERROR: Invalid commit separator - some tools may have problems applying this
#12: 
----------------------------------------------------------------------------


Applied to libata/linux.git (for-7.2), thanks!

[1/1] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset)
      https://git.kernel.org/libata/linux/c/a3f75e5e

Kind regards,
Niklas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-05 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05  4:23 [PATCH] ata: ahci: Move EXPORT_SYMBOL_GPL(ahci_do_softreset) Bart Van Assche
2026-05-05 13:29 ` Damien Le Moal
2026-05-05 14:49 ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox