From nobody Thu May 16 17:39:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1690364085061843.8229917797682; Wed, 26 Jul 2023 02:34:45 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.570246.891910 (Exim 4.92) (envelope-from ) id 1qOauZ-0005ev-C2; Wed, 26 Jul 2023 09:34:27 +0000 Received: by outflank-mailman (output) from mailman id 570246.891910; Wed, 26 Jul 2023 09:34:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qOauZ-0005eo-9J; Wed, 26 Jul 2023 09:34:27 +0000 Received: by outflank-mailman (input) for mailman id 570246; Wed, 26 Jul 2023 09:34:26 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qOauY-0005ea-Fk for xen-devel@lists.xenproject.org; Wed, 26 Jul 2023 09:34:26 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9b3990e4-2b97-11ee-8613-37d641c3527e; Wed, 26 Jul 2023 11:34:24 +0200 (CEST) Received: from Dell.bugseng.com (unknown [37.163.229.19]) by support.bugseng.com (Postfix) with ESMTPSA id 658754EE0738; Wed, 26 Jul 2023 11:34:22 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 9b3990e4-2b97-11ee-8613-37d641c3527e From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [XEN PATCH v2] xen: use parameter name 'mcs' in arch_do_multicall_call() Date: Wed, 26 Jul 2023 11:34:14 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1690364086940100001 Content-Type: text/plain; charset="utf-8" Make function declaration and definition consistent using the same parameter name ('mcs' do denote a pointer to an 'mc_state'). This addresses a violation of MISRA C:2012 Rule 8.3: "All declarations of an object or function shall use the same names and type qualifiers". Signed-off-by: Federico Serafini Acked-by: Jan Beulich Reviewed-by: Stefano Stabellini --- Changes in v2: - added forgotten changes about x86. --- xen/arch/arm/traps.c | 4 ++-- xen/arch/x86/hypercall.c | 6 +++--- xen/include/xen/multicall.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index d1ef787638..eab2fcfc02 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1470,9 +1470,9 @@ static bool check_multicall_32bit_clean(struct multic= all_entry *multi) return true; } =20 -enum mc_disposition arch_do_multicall_call(struct mc_state *state) +enum mc_disposition arch_do_multicall_call(struct mc_state *mcs) { - struct multicall_entry *multi =3D &state->call; + struct multicall_entry *multi =3D &mcs->call; =20 if ( multi->op >=3D ARRAY_SIZE(hypercall_args) ) { diff --git a/xen/arch/x86/hypercall.c b/xen/arch/x86/hypercall.c index cc9a6a9d59..01cd73040d 100644 --- a/xen/arch/x86/hypercall.c +++ b/xen/arch/x86/hypercall.c @@ -203,15 +203,15 @@ int hypercall_xlat_continuation(unsigned int *id, uns= igned int nr, return rc; } =20 -enum mc_disposition arch_do_multicall_call(struct mc_state *state) +enum mc_disposition arch_do_multicall_call(struct mc_state *mcs) { const struct domain *currd =3D current->domain; =20 if ( is_pv_domain(currd) ) - return pv_do_multicall_call(state); + return pv_do_multicall_call(mcs); =20 if ( is_hvm_domain(currd) ) - return hvm_do_multicall_call(state); + return hvm_do_multicall_call(mcs); =20 return mc_exit; } diff --git a/xen/include/xen/multicall.h b/xen/include/xen/multicall.h index ac8238660a..5bebeca7b2 100644 --- a/xen/include/xen/multicall.h +++ b/xen/include/xen/multicall.h @@ -25,6 +25,6 @@ enum mc_disposition { mc_continue, mc_exit, mc_preempt, -} arch_do_multicall_call(struct mc_state *mc); +} arch_do_multicall_call(struct mc_state *mcs); =20 #endif /* __XEN_MULTICALL_H__ */ --=20 2.34.1