]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: ahci-imx: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 5 Jan 2026 14:29:46 +0000 (15:29 +0100)
committerDamien Le Moal <dlemoal@kernel.org>
Thu, 8 Jan 2026 08:43:00 +0000 (17:43 +0900)
commit4afc71c225130dab95ce15fcb385b5b500c02ed4
tree256e9d811a1251e0eff3405a379c5efa7f37c5b1
parent602f6612826b47f6a70931002172c404db9da872
ata: ahci-imx: Fix Wvoid-pointer-to-enum-cast warning

"imxpriv->type" is an enum, thus cast of pointer on 64-bit compile test
with clang W=1 causes:

  ahci_imx.c:872:18: error: cast to smaller integer type 'enum ahci_imx_type' 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_imx.c