From 1e9fb43d30c0526e164bebaab387b615edfa79ad Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Mon, 30 Jun 2025 15:33:25 +0200 Subject: accel: Remove unused MachineState argument of AccelClass::setup_post() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This method only accesses xen_domid/xen_domid_restrict, which are both related to the 'accelerator', not the machine. Besides, xen_domid aims to be in Xen AccelState and xen_domid_restrict a xen_domid_restrict QOM property. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250703173248.44995-36-philmd@linaro.org> --- accel/accel-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel/accel-system.c') diff --git a/accel/accel-system.c b/accel/accel-system.c index 913b7155d7..af713cc902 100644 --- a/accel/accel-system.c +++ b/accel/accel-system.c @@ -58,7 +58,7 @@ void accel_setup_post(MachineState *ms) AccelState *accel = ms->accelerator; AccelClass *acc = ACCEL_GET_CLASS(accel); if (acc->setup_post) { - acc->setup_post(ms, accel); + acc->setup_post(accel); } } -- cgit 1.4.1