Skip to content

Commit

Permalink
sata_rcar: fix compilation warning in sata_rcar_thaw()
Browse files Browse the repository at this point in the history
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 <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Sergei Shtylyov authored and Tejun Heo committed Jun 4, 2013
1 parent ddfef5d commit 5ba59b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/sata_rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ba59b5

Please sign in to comment.