aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas/files
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-03-31 20:27:11 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-03-31 21:30:57 +0100
commit5e82e1ed2f71586ec4a9c4e21449a9a78013c38e (patch)
treebc62681140664b70ad7b5ea8b611d5ace8f1fe17 /target/linux/oxnas/files
parent5562c5add2faa5d407c308a98517b2b5cc6d84da (diff)
downloadupstream-5e82e1ed2f71586ec4a9c4e21449a9a78013c38e.tar.gz
upstream-5e82e1ed2f71586ec4a9c4e21449a9a78013c38e.tar.bz2
upstream-5e82e1ed2f71586ec4a9c4e21449a9a78013c38e.zip
oxnas: fix warning in SATA driver
drivers/ata/sata_oxnas.c: In function 'sata_oxnas_port_irq': drivers/ata/sata_oxnas.c:2126:25: warning: left shift count >= width of type [-Wshift-count-overflow] if (ap->qc_active & (1 << ATA_TAG_INTERNAL)) { ^~ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/oxnas/files')
-rw-r--r--target/linux/oxnas/files/drivers/ata/sata_oxnas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/oxnas/files/drivers/ata/sata_oxnas.c b/target/linux/oxnas/files/drivers/ata/sata_oxnas.c
index 64afa728a1..6e0f7a72a6 100644
--- a/target/linux/oxnas/files/drivers/ata/sata_oxnas.c
+++ b/target/linux/oxnas/files/drivers/ata/sata_oxnas.c
@@ -2123,7 +2123,7 @@ static void sata_oxnas_port_irq(struct ata_port *ap, int force_error)
DPRINTK("ENTER port %d irqstatus %x\n", ap->port_no,
ioread32(port_base + INT_STATUS));
- if (ap->qc_active & (1 << ATA_TAG_INTERNAL)) {
+ if (ap->qc_active & (1ULL << ATA_TAG_INTERNAL)) {
qc = ata_qc_from_tag(ap, ATA_TAG_INTERNAL);
DPRINTK("completing non-ncq cmd\n");