summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-03-10 15:23:40 -0700
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2025-03-17 10:24:00 -0700
commit9a1cf85c9c7cca15bfc452f207818977621dedf8 (patch)
tree80b9106e3bba59ca7f0990ea948e4bb59082b5d1 /tools/perf/scripts/python/netdev-times.py
parente92c658b056b31fbc923a59bd72d51ca9f2ba921 (diff)
downloadlinux-9a1cf85c9c7cca15bfc452f207818977621dedf8.tar.gz
linux-9a1cf85c9c7cca15bfc452f207818977621dedf8.zip
wifi: carl9170: Add __nonstring annotations for unterminated strings
When a character array without a terminating NUL character has a static initializer, GCC 15's -Wunterminated-string-initialization will only warn if the array lacks the "nonstring" attribute[1]. Mark the arrays with __nonstring to and correctly identify the char array as "not a C string" and thereby eliminate the warning. Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1] Cc: Christian Lamparter <chunkeey@googlemail.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: linux-wireless@vger.kernel.org Signed-off-by: Kees Cook <kees@kernel.org> Acked-by: Christian Lamparter <chunkeey@gmail.com> Link: https://patch.msgid.link/20250310222339.work.654-kees@kernel.org Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions