mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-10-25 15:17:01 +10:00
dmaengine: mmp: Fix again Wvoid-pointer-to-enum-cast warning
[ Upstream commita0b1589b62] 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:a67ba97dfb("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
49f5e7de2b
commit
8a926e1ea7
@ -641,7 +641,7 @@ static int mmp_tdma_probe(struct platform_device *pdev)
|
||||
int chan_num = TDMA_CHANNEL_NUM;
|
||||
struct gen_pool *pool = NULL;
|
||||
|
||||
type = (enum mmp_tdma_type)device_get_match_data(&pdev->dev);
|
||||
type = (kernel_ulong_t)device_get_match_data(&pdev->dev);
|
||||
|
||||
/* always have couple channels */
|
||||
tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user