From patchwork Sun Oct 29 14:50:32 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: 739063 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp743985wrt; Sun, 29 Oct 2023 07:57:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4m8TWIpw2LgkjyVg3tkgBMv6lbD0OGnuoQ35rbGSmLzmmuXE3BsU7wv5/AMZ90DlWPdtK X-Received: by 2002:a05:6214:2a45:b0:66d:17:9059 with SMTP id jf5-20020a0562142a4500b0066d00179059mr9753503qvb.64.1698591421741; Sun, 29 Oct 2023 07:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698591421; cv=none; d=google.com; s=arc-20160816; b=B2nT/t3ufu08sEBtnIz9m5PfKoBPhVcePEDFEZU7OOnKSjcYt7Z0ogzras5/IZ/T4r F6dNCCe9uHlmxwkvy4uPCWEr5d9U1OcezNLde76zY3XA/sbmchEg0Kel/8BbgFqa8+Jt T5MM7EwIwJXbE+KDf/tuy1av+EHOxfY4Z16q1X4IBGnhtioSCID8zczWOn+GrYnzdSYy q+/S5yn9lIfQAYIfwM6792+pJHCPK6iSwhy1B+oTDsByC4+np8l7VTEJ7RUe+20TsnGK TEwzrs3DwjWHYPVcgPExvDMGdeYRtBuMGphHWkaMpBfBNCDhEQaLJFCRaBDS8TNp4Uc7 kMjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gHsqkB0IASk68fTXpXP2OAO5XJadiYMzafZ5IwzftpE=; fh=szJfndOZJdVs8ptlKQkRpQbcP/QHQQazJY22C2DjZC0=; b=wUc37PUrjeZ1YdWtjVhWThcFoQ5A64DtfxaIHkwXSuGkq4KaDf2fI8ExCUXW99nO/0 kPgIs3IK8kOsjMGaP5ewVzvpvo5Pe9hqytQJACQHQOfIubWNe6FIQj9Rh81zS3OV4EBq odHo+FPVNKTVWoZdTqyB0eyu3Vdk5CGCDHlAkAln1Im6MrFJDcwQY4pUHyhy2i3pz/s2 b76f0tjuwNNIFV716CJ0/GuUvRYrOsy6guhPA95ZB31dYPV0gPLlHYY96DXrfMYD2l4P 4/BCH7y4e6/R3+Wp0ChOWIX5ksyFf/jvG294+BkLWPJBJkuMuz0A0hb+W10uojat6eRa NXhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JieZsGbG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ow17-20020a05620a821100b0077894bc4685si3924868qkn.584.2023.10.29.07.57.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Oct 2023 07:57:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JieZsGbG; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qx7DG-00036y-Si; Sun, 29 Oct 2023 10:56:26 -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 1qx7DC-00035L-1q for qemu-devel@nongnu.org; Sun, 29 Oct 2023 10:56:23 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qx7D9-0006GW-9s for qemu-devel@nongnu.org; Sun, 29 Oct 2023 10:56:21 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50910346557so1376177e87.1 for ; Sun, 29 Oct 2023 07:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698591376; x=1699196176; 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=gHsqkB0IASk68fTXpXP2OAO5XJadiYMzafZ5IwzftpE=; b=JieZsGbGevS6gKt0ikfIn6TTNzH9l+czU94/RJOEE4xmkqXMTgXViK0bh0sjWKJqg0 98In06fiUfE4ZOapyVC7QppBdEWONSDuRve2QV61dkB/N7b7v5X7HeyJzRsxLMkTa+p/ DRxrdMQhbKRlVuCYHYeQpYXMnILPbkY6537QvKbdQLXRcC1nTRb0eIcgvoSdw4dybQ3D Sbyv2C52iQh/YGOJgDG/9dqJgwHNoCUjKo8F5JfuY+21sRqqqFhzKC8zXJ50CIKehGDl bYjIVPfWMOxrtwRt9dx29IUSt2xVYnW0w5yQ/EvhG7NmrVjLWMaX/15+B4BTCZq/UnmD /IKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698591376; x=1699196176; 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=gHsqkB0IASk68fTXpXP2OAO5XJadiYMzafZ5IwzftpE=; b=nR9sUK++STLTEdnZj4fnnrd/JC25PpDe3efx7RxkmEk6D8KhgmV1WLkB84R0md2mUd KYFx1mPeweGeluUOGTT9qthtVmmGlTMgqeT+tzHvKgW9YaWJ7n6fbYg3SvA/sG5sbSgb pOMvJTj7L6uJQ6qgyp2sytRSYRBluQwE0wDu1YZZ81OkmShHgEpTh75cTi+wdCowFsuo 663/GE1aqZ//0U8lNo+WzJwQldc/nays3FEHDLU+dY4XG6sAEsoxnbvArZfT30i1nV89 zVH3uT/vVLjprSn77jrV3Zj6i2gYpTjYl0Ox7OHP0dyzeybc/HBpFSrRxrso31nciXBA 4pfg== X-Gm-Message-State: AOJu0YzPKGfYr/cf4I8EycWl2J1vKHy6UFLBCWa0AEnd0IagDyagSz6L /xYW2mrDtYuoLGfF1VuyAMA1/w== X-Received: by 2002:a05:6512:234f:b0:509:b3f:8a7c with SMTP id p15-20020a056512234f00b005090b3f8a7cmr3572562lfu.7.1698591376453; Sun, 29 Oct 2023 07:56:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id o8-20020a056000010800b0032d8354fb43sm2271548wrx.76.2023.10.29.07.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 07:56:16 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id C59406570A; Sun, 29 Oct 2023 14:50:35 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini , Mahmoud Mandour , Wainer dos Santos Moschetta , Brad Smith , Aleksandar Rikalo , Kyle Evans , Aurelien Jarno , Jiaxun Yang , qemu-arm@nongnu.org, Peter Maydell , Thomas Huth , Warner Losh , "Edgar E. Iglesias" , Eduardo Habkost , =?utf-8?q?Alex_Benn=C3=A9e?= , Beraldo Leal , Brian Cain , Alexandre Iooss , Akihiko Odaki Subject: [PATCH v2 18/19] plugins: Remove an extra parameter Date: Sun, 29 Oct 2023 14:50:32 +0000 Message-Id: <20231029145033.592566-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231029145033.592566-1-alex.bennee@linaro.org> References: <20231029145033.592566-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x135.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=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.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 Message-Id: <20231028103311.347104-17-alex.bennee@linaro.org> --- 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;