aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-04-29 07:35:19 +0000
committerMark Brown <[email protected]>2025-04-30 00:38:11 +0000
commit95b2536137eeb66f20947e0fb0d0c100c8d6a140 (patch)
treea6bc6eda936be059bf6c66eaa726679d321e7fb1 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentASoC: Intel: bytcr_rt5640: Add DMI quirk for Acer Aspire SW3-013 (diff)
downloadkernel-95b2536137eeb66f20947e0fb0d0c100c8d6a140.tar.gz
kernel-95b2536137eeb66f20947e0fb0d0c100c8d6a140.zip
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 <[email protected]> Acked-by: Cezary Rojewski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions