Skip to content

Commit

Permalink
ata: libahci: Silence compiler warning on 64-bit
Browse files Browse the repository at this point in the history
Commit 725c7b5 (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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
thierryreding authored and htejun committed Aug 1, 2014
1 parent 724f24e commit c4121c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libahci_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c4121c6

Please sign in to comment.