linux-yocto/include/xen
Kees Cook af71db7de0 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>
2025-04-25 10:45:11 +02:00
..
arm arm/xen: remove lazy mode related definitions 2023-09-19 07:04:49 +02:00
interface xen/mcelog: Add __nonstring annotations for unterminated strings 2025-04-25 10:45:11 +02:00
acpi.h
balloon.h
events.h xen/events: reduce externally visible helper functions 2024-03-01 13:34:57 +01:00
features.h
grant_table.h
hvc-console.h
hvm.h
mem-reservation.h
page.h
pci.h
platform_pci.h
swiotlb-xen.h
xen-front-pgdir-shbuf.h
xen-ops.h
xen.h xen/pci: add flag for PCI passthrough being possible 2023-07-31 17:54:27 +02:00
xenbus_dev.h
xenbus.h