mirror-linux/sound/soc/rockchip
Krzysztof Kozlowski 57d508b5f7
ASoC: rockchip: Fix Wvoid-pointer-to-enum-cast warning (again)
'version' is an enum, thus cast of pointer on 64-bit compile test with
clang W=1 causes:

  rockchip_pdm.c:583:17: error: cast to smaller integer type 'enum rk_pdm_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

This was already fixed in commit 49a4a8d126 ("ASoC: rockchip: Fix
Wvoid-pointer-to-enum-cast warning") but then got bad in
commit 9958d85968 ("ASoC: Use device_get_match_data()").

Discussion on LKML also pointed out that 'uintptr_t' is not the correct
type and either 'kernel_ulong_t' or 'unsigned long' should be used,
with several arguments towards the latter [1].

Link: https://lore.kernel.org/r/CAMuHMdX7t=mabqFE5O-Cii3REMuyaePHmqX+j_mqyrn6XXzsoA@mail.gmail.com/ [1]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251203141644.106459-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-12-03 14:54:38 +00:00
..
Kconfig ASoC: rockchip: Standardize ASoC menu 2025-06-24 01:01:40 +01:00
Makefile ASoC: rockchip: add Serial Audio Interface (SAI) driver 2025-04-22 15:35:17 +01:00
rk3288_hdmi_analog.c ASoC: rockchip: rk3288_hdmi_analog: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:04 +00:00
rk3399_gru_sound.c ASoC: rockchip: rk3399_gru_sound: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:35 +00:00
rockchip_i2s.c ASoC: rockchip: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:14:53 +00:00
rockchip_i2s.h ASoC: rockchip: i2s: Add support for frame inversion 2021-08-26 13:59:40 +01:00
rockchip_i2s_tdm.c ASoC: rockchip: i2s-tdm: Omit a variable reassignment in rockchip_i2s_tdm_probe() 2025-10-21 15:10:52 +01:00
rockchip_i2s_tdm.h ASoC: rockchip: i2s-tdm: switch to FIELD_PREP_WM16_CONST macro 2025-09-02 20:06:47 -04:00
rockchip_max98090.c ASoC: rockchip: rockchip_max98090: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:05 +00:00
rockchip_pdm.c ASoC: rockchip: Fix Wvoid-pointer-to-enum-cast warning (again) 2025-12-03 14:54:38 +00:00
rockchip_pdm.h ASoC: rockchip: pdm: Add support for path map 2021-09-13 01:44:10 +01:00
rockchip_rt5645.c ASoC: rockchip: rockchip_rt5645: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:36 +00:00
rockchip_sai.c ASoC: rockchip: use snd_kcontrol_chip() instead of snd_soc_kcontrol_component() 2025-10-20 02:44:27 +01:00
rockchip_sai.h ASoC: rockchip: add Serial Audio Interface (SAI) driver 2025-04-22 15:35:17 +01:00
rockchip_spdif.c ASoC: rockchip: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:14:53 +00:00
rockchip_spdif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00