From: Jens Axboe Date: Fri, 11 May 2018 20:49:25 +0000 (-0600) Subject: sata_fsl: use the right type for tag bitshift X-Git-Tag: v4.18-rc1~131^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88e10092f6a623b88808f782b6637162b5b658fb;p=thirdparty%2Flinux.git sata_fsl: use the right type for tag bitshift Since ATA_TAG_INTERNAL is now > 31 bits, we need to extend the type to ULL to cover 32/64-bit cases. Signed-off-by: Jens Axboe Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 1b22d5c339d70..b8d9cfc60374e 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c @@ -1293,7 +1293,7 @@ static void sata_fsl_host_intr(struct ata_port *ap) ata_qc_complete_multiple(ap, ap->qc_active ^ done_mask); return; - } else if ((ap->qc_active & (1 << ATA_TAG_INTERNAL))) { + } else if ((ap->qc_active & (1ULL << ATA_TAG_INTERNAL))) { iowrite32(1, hcr_base + CC); qc = ata_qc_from_tag(ap, ATA_TAG_INTERNAL);