diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> | 2026-01-05 15:29:47 +0100 |
|---|---|---|
| committer | Damien Le Moal <dlemoal@kernel.org> | 2026-01-08 17:43:04 +0900 |
| commit | 97e01439e902b743b8f89497e9c144e3ddda5e59 (patch) | |
| tree | 74c9a41a0e776b8198caf48aca973997446dc511 /drivers/ata | |
| parent | 4afc71c225130dab95ce15fcb385b5b500c02ed4 (diff) | |
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>
Diffstat (limited to 'drivers/ata')
| -rw-r--r-- | drivers/ata/ahci_xgene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 6b8844646fcd..98c99b5a8242 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -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 { |
