From: Arnd Bergmann Date: Tue, 23 Dec 2025 21:53:19 +0000 (+0100) Subject: ASoC: rt1320: fix size_t format string X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=284853affe73fe1ca9786bd52b934eb9d420a942;p=thirdparty%2Fkernel%2Flinux.git ASoC: rt1320: fix size_t format string Printing a size_t portably requires the use of %z instead of %l: sound/soc/codecs/rt1320-sdw.c:1494:30: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Werror=format=] 1494 | dev_dbg(dev, "%s, rae_fw size=0x%lx\n", __func__, rae_fw->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 22937af75abb ("ASoC: rt1320: support RAE parameters loading") Signed-off-by: Arnd Bergmann Link: https://patch.msgid.link/20251223215322.694265-1-arnd@kernel.org Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt1320-sdw.c b/sound/soc/codecs/rt1320-sdw.c index 0e97a00e49d67..84e9e8ab97983 100644 --- a/sound/soc/codecs/rt1320-sdw.c +++ b/sound/soc/codecs/rt1320-sdw.c @@ -1489,7 +1489,7 @@ static int rt1320_rae_load(struct rt1320_sdw_priv *rt1320) return -ETIMEDOUT; } - dev_dbg(dev, "%s, rae_fw size=0x%lx\n", __func__, rae_fw->size); + dev_dbg(dev, "%s, rae_fw size=0x%zx\n", __func__, rae_fw->size); regcache_cache_bypass(rt1320->regmap, true); for (fw_offset = 0; fw_offset < rae_fw->size;) {