summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-04-15 16:24:05 -0700
committerKees Cook <kees@kernel.org>2025-04-28 10:32:43 -0700
commitccf1d2b4a1d9ef4287ff51e634c626fd4683b10c (patch)
treefe35117e321623e7a8d09690b9907ec3cef77d7d /tools/perf/scripts/python/exported-sql-viewer.py
parent8e28276a569addb8a2324439ae473848ee52b056 (diff)
input/joystick: magellan: Mark __nonstring look-up table const
GCC 15's new -Wunterminated-string-initialization notices that the 16 character lookup table "nibbles" (which is not used as a C-String) needs to be marked as "nonstring": drivers/input/joystick/magellan.c: In function 'magellan_crunch_nibbles': drivers/input/joystick/magellan.c:51:44: warning: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Wunterminated-string-initialization] 51 | static unsigned char nibbles[16] = "0AB3D56GH9:K<MN?"; | ^~~~~~~~~~~~~~~~~~ While the annotation was added in commit 48709ee1fa9a ("gcc-15: add '__nonstring' markers to byte arrays") also mark the table as const. Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions