From: Takashi Iwai <tiwai@xxxxxxx> commit ed990c07af70d286f5736021c6e25d8df6f2f7b0 upstream. The recent change for the legacy substream name update brought a compile warning for some compilers due to the nature of snprintf(). Use scnprintf() to shut up the warning since the truncation is intentional. Fixes: e29e504e7890 ("ALSA: ump: Indicate the inactive group in legacy substream names") Reported-by: kernel test robot <lkp@xxxxxxxxx> Closes: https://lore.kernel.org/oe-kbuild-all/202411300103.FrGuTAYp-lkp@xxxxxxxxx/ Link: https://patch.msgid.link/20241130090009.19849-1-tiwai@xxxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/core/ump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/sound/core/ump.c +++ b/sound/core/ump.c @@ -1262,9 +1262,9 @@ static void fill_substream_names(struct name = ump->groups[idx].name; if (!*name) name = ump->info.name; - snprintf(s->name, sizeof(s->name), "Group %d (%.16s)%s", - idx + 1, name, - ump->groups[idx].active ? "" : " [Inactive]"); + scnprintf(s->name, sizeof(s->name), "Group %d (%.16s)%s", + idx + 1, name, + ump->groups[idx].active ? "" : " [Inactive]"); } } Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-6.12/alsa-ump-update-legacy-substream-names-upon-fb-info-.patch queue-6.12/alsa-ump-don-t-open-legacy-substream-for-an-inactive.patch queue-6.12/alsa-hda-conexant-fix-z60mr100-startup-pop-issue.patch queue-6.12/alsa-sh-use-standard-helper-for-buffer-accesses.patch queue-6.12/alsa-ump-indicate-the-inactive-group-in-legacy-subst.patch queue-6.12/alsa-ump-shut-up-truncated-string-warning.patch queue-6.12/alsa-sh-fix-wrong-argument-order-for-copy_from_iter.patch queue-6.12/alsa-memalloc-prefer-dma_mapping_error-over-explicit-address-checking.patch