All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: imx-audmux: Silence a clang warning
@ 2022-05-26  1:05 Fabio Estevam
  2022-05-27  8:15 ` Shengjiu Wang
  2022-06-07 10:45 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2022-05-26  1:05 UTC (permalink / raw)
  To: broonie
  Cc: nathan, Fabio Estevam, alsa-devel, shengjiu.wang, kernel test robot

Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:

sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 6a8b8b582db1 ("ASoC: imx-audmux: Remove unused .id_table")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 sound/soc/fsl/imx-audmux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
index dfa05d40b276..a8e5e0f57faf 100644
--- a/sound/soc/fsl/imx-audmux.c
+++ b/sound/soc/fsl/imx-audmux.c
@@ -298,7 +298,7 @@ static int imx_audmux_probe(struct platform_device *pdev)
 		audmux_clk = NULL;
 	}
 
-	audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
+	audmux_type = (uintptr_t)of_device_get_match_data(&pdev->dev);
 
 	switch (audmux_type) {
 	case IMX31_AUDMUX:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: imx-audmux: Silence a clang warning
  2022-05-26  1:05 [PATCH] ASoC: imx-audmux: Silence a clang warning Fabio Estevam
@ 2022-05-27  8:15 ` Shengjiu Wang
  2022-06-07 10:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Shengjiu Wang @ 2022-05-27  8:15 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: nathan, alsa-devel, Mark Brown, kernel test robot

On Thu, May 26, 2022 at 9:05 AM Fabio Estevam <festevam@gmail.com> wrote:

> Change the of_device_get_match_data() cast to (uintptr_t)
> to silence the following clang warning:
>
> sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type
> 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
>
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 6a8b8b582db1 ("ASoC: imx-audmux: Remove unused .id_table")
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
>

Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>

best regards
wang shengjiu


> ---
>  sound/soc/fsl/imx-audmux.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
> index dfa05d40b276..a8e5e0f57faf 100644
> --- a/sound/soc/fsl/imx-audmux.c
> +++ b/sound/soc/fsl/imx-audmux.c
> @@ -298,7 +298,7 @@ static int imx_audmux_probe(struct platform_device
> *pdev)
>                 audmux_clk = NULL;
>         }
>
> -       audmux_type = (enum
> imx_audmux_type)of_device_get_match_data(&pdev->dev);
> +       audmux_type = (uintptr_t)of_device_get_match_data(&pdev->dev);
>
>         switch (audmux_type) {
>         case IMX31_AUDMUX:
> --
> 2.25.1
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ASoC: imx-audmux: Silence a clang warning
  2022-05-26  1:05 [PATCH] ASoC: imx-audmux: Silence a clang warning Fabio Estevam
  2022-05-27  8:15 ` Shengjiu Wang
@ 2022-06-07 10:45 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-06-07 10:45 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: nathan, alsa-devel, shengjiu.wang, lkp

On Wed, 25 May 2022 22:05:43 -0300, Fabio Estevam wrote:
> Change the of_device_get_match_data() cast to (uintptr_t)
> to silence the following clang warning:
> 
> sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: imx-audmux: Silence a clang warning
      commit: 2f4a8171da06609bb6a063630ed546ee3d93dad7

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-07 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26  1:05 [PATCH] ASoC: imx-audmux: Silence a clang warning Fabio Estevam
2022-05-27  8:15 ` Shengjiu Wang
2022-06-07 10:45 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.