Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: c4b5b7b6c4423 ("pata_ns87415: Initial cut at 87415/87560 IDE support")
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>

authored by

Arnd Bergmann and committed by
Damien Le Moal
3fc2febb 1cfe2d28

+1 -1
+1 -1
drivers/ata/pata_ns87415.c
··· 260 260 * LOCKING: 261 261 * Inherited from caller. 262 262 */ 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) 264 264 { 265 265 struct ata_ioports *ioaddr = &ap->ioaddr; 266 266