From 7c205464f51ec6955779dc7914fd2ca7bd229c63 Mon Sep 17 00:00:00 2001 From: dinglimin Date: Thu, 21 Aug 2025 10:59:31 +0800 Subject: [PATCH] qom: Make InterfaceInfo[] uses const Mechanical change using: $ sed -i -E 's/\(InterfaceInfo.?\[/\(const InterfaceInfo\[/g' \ $(git grep -lE '\(InterfaceInfo.?\[\]\)') MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20250424194905.82506-7-philmd@linaro.org> Signed-off-by: dinglimin --- block/throttle-groups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/throttle-groups.c b/block/throttle-groups.c index f5c0fac581..d9e6228a73 100644 --- a/block/throttle-groups.c +++ b/block/throttle-groups.c @@ -967,7 +967,7 @@ static const TypeInfo throttle_group_info = { .instance_size = sizeof(ThrottleGroup), .instance_init = throttle_group_obj_init, .instance_finalize = throttle_group_obj_finalize, - .interfaces = (InterfaceInfo[]) { + .interfaces = ((const InterfaceInfo[]) { { TYPE_USER_CREATABLE }, { } }, -- Gitee