Skip to content

Commit

Permalink
ata: pata_ns87415: mark ns87560_tf_read static
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
arndb authored and damien-lemoal committed Jul 27, 2023
1 parent 1cfe2d2 commit 3fc2feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_ns87415.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)
* LOCKING:
* Inherited from caller.
*/
void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
{
struct ata_ioports *ioaddr = &ap->ioaddr;

Expand Down

0 comments on commit 3fc2feb

Please sign in to comment.