]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: avs: Fix build error on arc, m68k and sparc
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 29 May 2022 14:12:50 +0000 (16:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2022 14:08:33 +0000 (16:08 +0200)
commit42916490e4dd5aa7a4073e21b0621df4f7719408
tree1110623eee22b7a2e8c4919527101c0fe7374ca5
parenteb07b22044b0c1c36fb39e1c06998b8533303fbc
ASoC: Intel: avs: Fix build error on arc, m68k and sparc

On some platforms (i.e. arc, m68k and sparc) __fls returns an int (while
on most platforms it returns an unsigned long). This triggers a format
warning on these few platforms as the driver uses %ld to print a warning.

So explicitly cast the return value to unsigned long to make the warning
go away (and so fix allmodconfig build on the affected architectures).

Fixes: 0dc3a5e87ec0 ("ASoC: Intel: avs: Machine board registration")
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220529141250.1979827-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/board_selection.c