ata: pata_ns87415: mark ns87560_tf_read static
stable inclusion from stable-v5.10.190 commit e410839c0cd863a1595c41820916289bc86272dd category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e410839c0cd863a1595c41820916289bc86272dd -------------------------------- [ Upstream commit 3fc2febb ] 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: c4b5b7b6 ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment