aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-04-16 15:10:29 -0700
committerJakub Kicinski <kuba@kernel.org>2025-04-22 18:22:12 -0700
commitf0f149d9747f0d597d3e04bb87be0f31e7e25c2e (patch)
tree7ac7e8709acf17616595996ab6e130a35e28f82b /tools/perf/scripts/python/export-to-postgresql.py
parentMerge branch 'net-phy-dp83822-add-support-for-changing-the-mac-series-termination' (diff)
downloadwireguard-linux-f0f149d9747f0d597d3e04bb87be0f31e7e25c2e.tar.xz
wireguard-linux-f0f149d9747f0d597d3e04bb87be0f31e7e25c2e.zip
emulex/benet: Annotate flash_cookie as nonstring
GCC 15's new -Wunterminated-string-initialization notices that the 32 character "flash_cookie" (which is not used as a C-String) needs to be marked as "nonstring": drivers/net/ethernet/emulex/benet/be_cmds.c:2618:51: warning: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Wunterminated-string-initialization] 2618 | static char flash_cookie[2][16] = {"*** SE FLAS", "H DIRECTORY *** "}; | ^~~~~~~~~~~~~~~~~~ Add this annotation, avoid using a multidimensional array, but keep the string split (with a comment about why). Additionally mark it const and annotate the "cookie" member that is being memcmp()ed against as nonstring too. Signed-off-by: Kees Cook <kees@kernel.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250416221028.work.967-kees@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions