mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
ata: ahci-xgene: Fix Wvoid-pointer-to-enum-cast warning
"version" is an enum, thus cast of pointer on 64-bit compile test with clang W=1 causes: ahci_xgene.c:776:13: error: cast to smaller integer type 'enum xgene_ahci_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
This commit is contained in:
parent
4afc71c225
commit
97e01439e9
1 changed files with 1 additions and 1 deletions
|
|
@ -773,7 +773,7 @@ static int xgene_ahci_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
if (dev->of_node) {
|
||||
version = (enum xgene_ahci_version)of_device_get_match_data(dev);
|
||||
version = (unsigned long)of_device_get_match_data(dev);
|
||||
}
|
||||
#ifdef CONFIG_ACPI
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue