summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libahci_platform.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-08-01 16:30:37 +0200
committerTejun Heo <tj@kernel.org>2014-08-01 17:18:53 +0200
commitc4121c650e5c798c852e981c245caa6713c0d99e (patch)
tree52699df151b2e2ca4702f23bd18e57c8bf569483 /drivers/ata/libahci_platform.c
parentDocumentation: bindings: document the sub-nodes AHCI bindings (diff)
downloadlinux-c4121c650e5c798c852e981c245caa6713c0d99e.tar.xz
linux-c4121c650e5c798c852e981c245caa6713c0d99e.zip
ata: libahci: Silence compiler warning on 64-bit
Commit 725c7b570fda (ata: libahci_platform: move port_map parameters into the AHCI structure) moves flags into the struct ahci_host_priv's .flags field, which causes compiler warnings on 64-bit builds when that value is cast to a void * pointer. Cast to an unsigned long so that the subsequent cast to a pointer doesn't produce a warning. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/ata/libahci_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c
index a60b8cd40198..5b92c290e6c6 100644
--- a/drivers/ata/libahci_platform.c
+++ b/drivers/ata/libahci_platform.c
@@ -426,7 +426,7 @@ int ahci_platform_init_host(struct platform_device *pdev,
}
/* prepare host */
- pi.private_data = (void *)hpriv->flags;
+ pi.private_data = (void *)(unsigned long)hpriv->flags;
ahci_save_initial_config(dev, hpriv);