]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 May 2025 19:26:05 +0000 (21:26 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Jun 2025 22:29:44 +0000 (15:29 -0700)
commita0b1589b62e2fcfb112996e0f4d5593bd2edf069
tree0fce72f38acb68e5f21d35c866c9169bc5a56ff1
parent85a4ca2902c1d3b8ccea03837b10e178405192c5
dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning

This was fixed and re-introduced.  'type' is an enum, thus cast of
pointer on 64-bit compile test with W=1 causes:

  mmp_tdma.c:644:9: error: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Fixes: a67ba97dfb30 ("dmaengine: Use device_get_match_data()")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250525-dma-fixes-v1-5-89d06dac9bcb@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mmp_tdma.c