summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tas6424.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-03-26 23:38:07 +0100
committerTakashi Iwai <tiwai@suse.de>2024-03-27 10:53:37 +0100
commit7590ac2249ebfa6a40db9055fa62d349e9c8e6a6 (patch)
tree1d3dba161bea0298653a428c1ef2a8a5af97c2fe /sound/soc/codecs/tas6424.c
parent051e0840ffa8ab25554d6b14b62c9ab9e4901457 (diff)
downloadlinux-stable-7590ac2249ebfa6a40db9055fa62d349e9c8e6a6.tar.gz
linux-stable-7590ac2249ebfa6a40db9055fa62d349e9c8e6a6.tar.bz2
linux-stable-7590ac2249ebfa6a40db9055fa62d349e9c8e6a6.zip
ALSA: aoa: avoid false-positive format truncation warning
clang warns about what it interprets as a truncated snprintf: sound/aoa/soundbus/i2sbus/core.c:171:6: error: 'snprintf' will always be truncated; specified size is 6, but format string expands to at least 7 [-Werror,-Wformat-truncation-non-kprintf] The actual problem here is that it does not understand the special %pOFn format string and assumes that it is a pointer followed by the string "OFn", which would indeed not fit. Slightly increasing the size of the buffer to its natural alignment avoids the warning, as it is now long enough for the correct and the incorrect interprations. Fixes: b917d58dcfaa ("ALSA: aoa: Convert to using %pOFn instead of device_node.name") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Message-ID: <20240326223825.4084412-9-arnd@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/tas6424.c')
0 files changed, 0 insertions, 0 deletions