From c4184bf305dc14c3e150617904c40b120664efe6 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 5 Jul 2022 13:11:51 +0200 Subject: [PATCH] public: constify xsd_errors[] While in principle this could break existing users, I think such users deserve to be put in trouble. After all the table should have been const from the very beginning. Signed-off-by: Jan Beulich Reviewed-by: Juergen Gross --- xen/include/public/io/xs_wire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/public/io/xs_wire.h b/xen/include/public/io/xs_wire.h index c573950fbf..05d3069e63 100644 --- a/xen/include/public/io/xs_wire.h +++ b/xen/include/public/io/xs_wire.h @@ -71,7 +71,7 @@ struct xsd_errors #ifdef EINVAL #define XSD_ERROR(x) { x, #x } /* LINTED: static unused */ -static struct xsd_errors xsd_errors[] +static const struct xsd_errors xsd_errors[] #if defined(__GNUC__) __attribute__((unused)) #endif -- 2.30.2