linux/include/xen/interface
Kees Cook 01e1c8a26e xen/mcelog: Add __nonstring annotations for unterminated strings
[ Upstream commit 1c3dfc7c6b ]

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: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Cc: xen-devel@lists.xenproject.org
Signed-off-by: Kees Cook <kees@kernel.org>
Acked-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250310222234.work.473-kees@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-02 07:43:53 +02:00
..
hvm treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
io xen: sync include/xen/interface/io/ring.h with Xen's newest version 2021-07-05 09:49:45 +02:00
callback.h ia64/xen: Remove Xen support for ia64 2013-12-10 16:11:07 -08:00
elfnote.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
event_channel.h xen: Use evtchn_type_t as a type for event channels 2020-04-07 12:12:54 +02:00
features.h xen/arm: introduce XENFEAT_direct_mapped and XENFEAT_not_direct_mapped 2021-04-23 11:33:50 +02:00
grant_table.h scripts/spelling.txt: add "an union" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
memory.h x86/xen: Move pv specific parts of arch/x86/xen/mmu.c to mmu_pv.c 2018-09-03 16:50:33 +02:00
nmi.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
physdev.h xen: add support for MSI message groups 2014-03-18 14:40:09 +00:00
platform.h x86/PVH: obtain VGA console info in Dom0 2023-04-05 11:24:52 +02:00
sched.h xen: Sync xen header 2016-09-05 13:52:37 +02:00
vcpu.h x86/xen/time: setup vcpu 0 time info page 2017-11-08 16:33:14 -05:00
version.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xen-mca.h xen/mcelog: Add __nonstring annotations for unterminated strings 2025-05-02 07:43:53 +02:00
xen.h xen: add wc_sec_hi to struct shared_info 2021-02-04 14:19:38 +00:00
xenpmu.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00