]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ata: pata_ns87415: mark ns87560_tf_read static
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Jul 2023 20:33:22 +0000 (22:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:51 +0000 (11:33 +0200)
commit57a4d6708ea6017f9f0e1a73fc8e0e6341770150
tree4ae3df966f5419c5d644d13c8534401ed0fa9496
parent4f7e78b0d07b576adf32099c4c5e560196fe521c
ata: pata_ns87415: mark ns87560_tf_read static

[ Upstream commit 3fc2febb0f8ffae354820c1772ec008733237cfa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/pata_ns87415.c