Skip to contentSkip to conversation

ata: Fix compiler warning with APM X-Gene host controller driver

PATCH New Loc Ho 2 participants 2 messages Mar 18, 2014

Subsystems (2)
lore
Share & tools
lore

Loc Ho

author
#0 lore raw

PATCH 1/1 ata: Fix compiler warning with APM X-Gene host controller driver

This patch fixes an compiler warning with APM X-Gene host controller driver when compiled with DEBUG enabled.

---
 drivers/ata/ahci_xgene.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ata/ahci_xgene.c +1 -1
index fcf21f1..77c89bf 100644
@@ -329,7 +329,7 @@ static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv)
 	writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT);
 	readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */
 	writel(0, ctx->csr_core + INTSTATUSMASK);
-	readl(ctx->csr_core + INTSTATUSMASK); /* Force a barrier */
+	val = readl(ctx->csr_core + INTSTATUSMASK); /* Force a barrier */
 	dev_dbg(ctx->dev, "top level interrupt mask 0x%X value 0x%08X\n",
 		INTSTATUSMASK, val);
 
Signature · 1 line
1.5.5
Applied
#1 lore raw

PATCH 1/1 ata: Fix compiler warning with APM X-Gene host controller driver

Quoted 4 lines · Loc Ho

This patch fixes an compiler warning with APM X-Gene host controller driver when compiled with DEBUG enabled.

Applied to libata/for-3.15.

Thanks.

Signature · 1 line
tejun