]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: rt1320: fix the warning the string may be truncated
authorShuming Fan <shumingf@realtek.com>
Mon, 22 Dec 2025 10:13:29 +0000 (18:13 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 17:51:06 +0000 (17:51 +0000)
commit8db50f0fa43efe8799fd40b872dcdd39a90d7549
tree11353db8144b97e8534e77bd7cb20ea0163a6734
parentc6bca73d699cfe00d3419566fdb2a45e112f44b0
ASoC: rt1320: fix the warning the string may be truncated

1488 |                          "realtek/rt1320/rt1320_%s_%s_%s.dat", vendor, product, sku);
     |                                                 ^~             ~~~~~~
sound/soc/codecs/rt1320-sdw.c:1487:17: note: 'snprintf' output between 29 and 410 bytes into a destination of size 128
1487 |                 snprintf(filename, sizeof(filename),
     |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1488 |                          "realtek/rt1320/rt1320_%s_%s_%s.dat", vendor, product, sku);
     |

Fixes: da1682d5e8b5 ("ASoC: rt1320: support calibration and temperature/r0 loading")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512191521.RK0edKdX-lkp@intel.com/
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20251222101329.558973-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1320-sdw.c