]> Git Repo - J-linux.git/commitdiff
ata: libata: Fix W=1 compilation warning
authorDamien Le Moal <[email protected]>
Sat, 7 Sep 2024 01:56:32 +0000 (10:56 +0900)
committerDamien Le Moal <[email protected]>
Sat, 7 Sep 2024 02:02:52 +0000 (11:02 +0900)
Commit c494708d1f68 ("ata: libata: Cleanup libata-transport")
inadvertently changed the name of the link argument to ata_link in the
kdoc description of ata_tlink_add(), causing warnings to be issue when
compiling with W=1:

drivers/ata/libata-transport.c:690: warning: Function parameter or
struct member 'link' not described in 'ata_tlink_add'
drivers/ata/libata-transport.c:690: warning: Excess function parameter
'ata_link' description in 'ata_tlink_add'

Change the kdoc argument name to "link" to avoid these warnings.

Fixes: c494708d1f68 ("ata: libata: Cleanup libata-transport")
Signed-off-by: Damien Le Moal <[email protected]>
drivers/ata/libata-transport.c

index d9a1888eac34d4831f1b3b0c424c6e6a981597dd..e898be49df6b54676b3989db33b846996bb40a26 100644 (file)
@@ -679,7 +679,7 @@ void ata_tlink_delete(struct ata_link *link)
 
 /**
  * ata_tlink_add  --  initialize an ATA link transport device
- * @ata_link:  struct ata_link owning the link transport device to initialize
+ * @link:      struct ata_link owning the link transport device to initialize
  *
  * Initialize an ATA link transport device for sysfs. It will be added in the
  * device tree below the ATA port it belongs to.
This page took 0.049903 seconds and 4 git commands to generate.