Skip to content

Commit d647bdf

Browse files
committed
ata: libata: Fix W=1 compilation warning
Commit c494708 ("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: c494708 ("ata: libata: Cleanup libata-transport") Signed-off-by: Damien Le Moal <[email protected]>
1 parent 602bcf2 commit d647bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/libata-transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ void ata_tlink_delete(struct ata_link *link)
679679

680680
/**
681681
* ata_tlink_add -- initialize an ATA link transport device
682-
* @ata_link: struct ata_link owning the link transport device to initialize
682+
* @link: struct ata_link owning the link transport device to initialize
683683
*
684684
* Initialize an ATA link transport device for sysfs. It will be added in the
685685
* device tree below the ATA port it belongs to.

0 commit comments

Comments
 (0)