Skip to content

Commit 3fc2feb

Browse files
arndbdamien-lemoal
authored andcommitted
ata: pata_ns87415: mark ns87560_tf_read static
The global function triggers a warning because of the missing prototype drivers/ata/pata_ns87415.c:263:6: warning: no previous prototype for 'ns87560_tf_read' [-Wmissing-prototypes] 263 | void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) There are no other references to this, so just make it static. Fixes: c4b5b7b ("pata_ns87415: Initial cut at 87415/87560 IDE support") Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Serge Semin <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 1cfe2d2 commit 3fc2feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/pata_ns87415.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)
260260
* LOCKING:
261261
* Inherited from caller.
262262
*/
263-
void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
263+
static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
264264
{
265265
struct ata_ioports *ioaddr = &ap->ioaddr;
266266

0 commit comments

Comments
 (0)