summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2026-10-14 18:11:53 +0200
committerBrian Masney <bmasney@redhat.com>2026-10-26 19:45:51 -0400
commite9e6b4dc303dff637ef725aca4f4968d7600798b (patch)
treedbec68d8e8e5e75c263e71b33a004e827d98f954 /include/linux
parent40e5d379cc19fa7fa477414087df5e915d5e843f (diff)
clk: cdce925: Size the PLL child name buffer for any int
The PLL child node name is built from "PLL%d" in a 6 byte stack buffer. The PLL index is bounded by the chip's num_plls, at most 4, but GCC cannot see that bound and, with W=1, warns that the formatted string may not fit. Make the buffer large enough to hold any int and use snprintf() with sizeof() so the size stays tied to the declaration. Fixes: 19fbbbbcd3a3 ("Add TI CDCE925 I2C controlled clock synthesizer driver") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://patch.msgid.link/20261014-cdce925-truncate-child-name-v1-1-00136be00c49@baylibre.com Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions