]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: ahci-xgene: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 5 Jan 2026 14:29:47 +0000 (15:29 +0100)
committerDamien Le Moal <dlemoal@kernel.org>
Thu, 8 Jan 2026 08:43:04 +0000 (17:43 +0900)
commit97e01439e902b743b8f89497e9c144e3ddda5e59
tree74c9a41a0e776b8198caf48aca973997446dc511
parent4afc71c225130dab95ce15fcb385b5b500c02ed4
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>
drivers/ata/ahci_xgene.c