Skip to content

Commit 928dceb

Browse files
committed
oxnas: sata_oxnas: use ata_link_err
Kernel 5.15.86 has backported ("ata: libata: move ata_{port,link,dev}_dbg to standard pr_XXX() macros") and this is now causing compilation errors for oxnas SATA driver due to usage of ata_link_printk(). Upstream has migrated to using the appropriate ata_link_{err, warn, notice, info} calls a while ago so its not affected. Lets do the same for oxnas SATA driver and use ata_link_err() instead of ata_link_printk(). Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent f17a5aa commit 928dceb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

target/linux/oxnas/files/drivers/ata/sata_oxnas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ static int sata_oxnas_softreset(struct ata_link *link, unsigned int *class,
20392039

20402040
/* if link is occupied, -ENODEV too is an error */
20412041
if (rc && (rc != -ENODEV || sata_scr_valid(link))) {
2042-
ata_link_printk(link, KERN_ERR, "SRST failed (errno=%d)\n", rc);
2042+
ata_link_err(link, "SRST failed (errno=%d)\n", rc);
20432043
return rc;
20442044
}
20452045

0 commit comments

Comments
 (0)