From patchwork Sat Oct 28 10:33:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 13439444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84EBAC27C47 for ; Sat, 28 Oct 2023 10:41:42 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwgko-0003nY-Qx; Sat, 28 Oct 2023 06:41:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwgkj-0003eS-JL for qemu-devel@nongnu.org; Sat, 28 Oct 2023 06:41:13 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwgkg-00057l-MH for qemu-devel@nongnu.org; Sat, 28 Oct 2023 06:41:13 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3296b3f03e5so1965167f8f.2 for ; Sat, 28 Oct 2023 03:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698489668; x=1699094468; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QTP++EEXZ2TTOVv8m/MeR1w9h8DFHpGwGpQkFcD2Z0c=; b=GLW66tTUEx5zbMwHOySttm1Df2eF/6ecukP56NqYWS6nw3V4j2r+w1ru7erk6SqV8/ YCC+BnTvipDKSPhMQHfLqyrGcSTtMtsAC63NWMya832gMavVsMok6oj22NdWAX/kASP/ zl9w1YGpMv4x5uurFOzxG8HIvMdaJaIiv1MQjT/3dUZg6xm0XlOc8VzBkRWpTMCsZRH2 Lp7CWt+/3PHw0MJavwdDsRHzhYFSo1tngrvrq4gGZjmcnbga+IlGVZ5+RdAyrDK5sBBR U63qPhe3Do+0Bdviuygr1XmUmZGHUBRGnX5Lo9Z0rsyXG7nzuz4FtD85vp+G7ziXjKpi BwOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698489668; x=1699094468; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QTP++EEXZ2TTOVv8m/MeR1w9h8DFHpGwGpQkFcD2Z0c=; b=vCcg5Ewr2s+JrA0G1RV4vkS5UkpC5BgdOtet9cAIyaTTGx3wSvyiC2NoxTcwEOS84S ylXbdUOTcJw39ZhEhmGYaHx4Zl8aWNfTMJeOaAmcylsB05oYXaTR0JxWR7EeCwtlSxNj /VofankYIXuWKEjZGu0duZVQ2YW2m7jv/0sB9dtCzBTy4NYAj3BT7EoJfEFmSluyICHz ShCP5IrJa20Y2StnzAYzKsjFGzXYTGnP6efzNTYyYXmGZJ8gFXnY/i52BoxSlWm7TyWP z67yNyujB7nCtlX5Iy1rgDy3OzWsEKlkoaabO6vvjvhnTXoFkuijmMP5WKzojejTruif w4eg== X-Gm-Message-State: AOJu0Yxq/aqfWlwcnMryjgBPAWVqQ5OXAa6rEmgFULC5+KtP9VScA5JM 07/uWzEfsjANwQuXadk/mRgr0w== X-Google-Smtp-Source: AGHT+IGsCTQeeRaFQfL9sqCuhuffzr3clOjSpLEHTH3gQ68lTkULHzl8vsUn3ZPhC92OpOcfK6Ol3Q== X-Received: by 2002:a05:6000:178f:b0:32f:7f43:1cf4 with SMTP id e15-20020a056000178f00b0032f7f431cf4mr240231wrg.60.1698489668592; Sat, 28 Oct 2023 03:41:08 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id p14-20020a5d68ce000000b003253523d767sm3576841wrw.109.2023.10.28.03.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 03:41:08 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 90B645F7A5; Sat, 28 Oct 2023 11:33:13 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Beraldo Leal , Mahmoud Mandour , Brian Cain , Paolo Bonzini , Warner Losh , Eduardo Habkost , Alexandre Iooss , "Edgar E. Iglesias" , Kyle Evans , qemu-arm@nongnu.org, Aleksandar Rikalo , Aurelien Jarno , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Richard Henderson , Wainer dos Santos Moschetta , Peter Maydell , Brad Smith , Jiaxun Yang , Thomas Huth , Akihiko Odaki Subject: [PATCH 16/17] plugins: Remove an extra parameter Date: Sat, 28 Oct 2023 11:33:10 +0100 Message-Id: <20231028103311.347104-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231028103311.347104-1-alex.bennee@linaro.org> References: <20231028103311.347104-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Akihiko Odaki copy_call() has an unused parameter so remove it. Signed-off-by: Akihiko Odaki Message-Id: <20231019101030.128431-7-akihiko.odaki@daynix.com> Reviewed-by: Richard Henderson --- accel/tcg/plugin-gen.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c index 39b3c9351f..78b331b251 100644 --- a/accel/tcg/plugin-gen.c +++ b/accel/tcg/plugin-gen.c @@ -327,8 +327,7 @@ static TCGOp *copy_st_ptr(TCGOp **begin_op, TCGOp *op) return op; } -static TCGOp *copy_call(TCGOp **begin_op, TCGOp *op, void *empty_func, - void *func, int *cb_idx) +static TCGOp *copy_call(TCGOp **begin_op, TCGOp *op, void *func, int *cb_idx) { TCGOp *old_op; int func_idx; @@ -372,8 +371,7 @@ static TCGOp *append_udata_cb(const struct qemu_plugin_dyn_cb *cb, } /* call */ - op = copy_call(&begin_op, op, HELPER(plugin_vcpu_udata_cb), - cb->f.vcpu_udata, cb_idx); + op = copy_call(&begin_op, op, cb->f.vcpu_udata, cb_idx); return op; } @@ -420,8 +418,7 @@ static TCGOp *append_mem_cb(const struct qemu_plugin_dyn_cb *cb, if (type == PLUGIN_GEN_CB_MEM) { /* call */ - op = copy_call(&begin_op, op, HELPER(plugin_vcpu_mem_cb), - cb->f.vcpu_udata, cb_idx); + op = copy_call(&begin_op, op, cb->f.vcpu_udata, cb_idx); } return op;