2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/sound/soc/intel/catpt
Arnd Bergmann 95b2536137
ASoC: Intel: catpt: avoid type mismatch in dev_dbg() format
Depending on the architecture __ffs() returns either an 'unsigned long'
or 'unsigned int' result. Compile-testing this driver on targets that
use the latter produces a warning:

sound/soc/intel/catpt/dsp.c: In function 'catpt_dsp_set_srampge':
sound/soc/intel/catpt/dsp.c:181:44: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'u32' {aka 'unsigned int'} [-Werror=format=]
  181 |                         dev_dbg(cdev->dev, "sanitize block %ld: off 0x%08x\n",
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change the type of the local variable to match the format string and
avoid the warning on any architecture.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250429073545.3558494-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-04-30 09:38:11 +09:00
..
core.h ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
device.c ASoC: intel: catpt: Convert to RUNTIME_PM_OPS() & co 2025-03-17 10:14:42 +00:00
dsp.c ASoC: Intel: catpt: avoid type mismatch in dev_dbg() format 2025-04-30 09:38:11 +09:00
ipc.c ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
loader.c ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
Makefile ASoC: intel: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:20 +09:00
messages.c ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
messages.h ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
pcm.c ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
registers.h ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
sysfs.c ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00
trace.h ASoC: Intel: catpt: clarify Copyright information 2024-05-06 23:59:38 +09:00