ata: libahci: Silence compiler warning on 64-bit
authorThierry Reding <treding@nvidia.com>
Fri, 1 Aug 2014 14:30:37 +0000 (16:30 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 1 Aug 2014 15:18:53 +0000 (11:18 -0400)
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>
drivers/ata/libahci_platform.c

index a60b8cd40198da8d6eb06640a01b73906e774a68..5b92c290e6c6e99dccb24a45cb76d81bfd23e6a8 100644 (file)
@@ -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);
 
This page took 0.024673 seconds and 5 git commands to generate.