From: Sergei Shtylyov Date: Mon, 3 Jun 2013 20:16:05 +0000 (-0700) Subject: sata_rcar: fix compilation warning in sata_rcar_thaw() X-Git-Tag: v3.11-rc1~98^2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ba59b59cb413b9d89f40532bad3529d5185dd3c;p=thirdparty%2Fkernel%2Flinux.git sata_rcar: fix compilation warning in sata_rcar_thaw() When compiling the driver with gcc 4.8, it gives the following warning: drivers/ata/sata_rcar.c: In function `sata_rcar_thaw': drivers/ata/sata_rcar.c:183:2: warning: large integer implicitly truncated to unsigned type [-Woverflow] Fix the warning by explicit cast of the 'unsigned long' value to 'u32'. Signed-off-by: Sergei Shtylyov Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 249c8a289bfd5..d51423463479f 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -180,7 +180,7 @@ static void sata_rcar_thaw(struct ata_port *ap) struct sata_rcar_priv *priv = ap->host->private_data; /* ack */ - iowrite32(~SATA_RCAR_INT_MASK, priv->base + SATAINTSTAT_REG); + iowrite32(~(u32)SATA_RCAR_INT_MASK, priv->base + SATAINTSTAT_REG); ata_sff_thaw(ap);