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.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 33BB9EB64D8 for ; Thu, 22 Jun 2023 09:53:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.553466.864031 (Exim 4.92) (envelope-from ) id 1qCH05-0007lu-O9; Thu, 22 Jun 2023 09:53:13 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 553466.864031; Thu, 22 Jun 2023 09:53:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qCH05-0007ln-LS; Thu, 22 Jun 2023 09:53:13 +0000 Received: by outflank-mailman (input) for mailman id 553466; Thu, 22 Jun 2023 09:53:13 +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 1qCH05-0007lh-0c for xen-devel@lists.xenproject.org; Thu, 22 Jun 2023 09:53:13 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 978de6d2-10e2-11ee-8611-37d641c3527e; Thu, 22 Jun 2023 11:53:08 +0200 (CEST) Received: from [172.20.10.2] (unknown [37.160.126.171]) by support.bugseng.com (Postfix) with ESMTPSA id 4A9E44EE0737; Thu, 22 Jun 2023 11:53:07 +0200 (CEST) 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: 978de6d2-10e2-11ee-8611-37d641c3527e Message-ID: <2a766c08-3418-c9be-49f0-691366cb8ee5@bugseng.com> Date: Thu, 22 Jun 2023 11:53:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [XEN PATCH] xen/arm: fixed violations of MISRA C:2012 R8.3 on parameter names. Content-Language: en-US To: Michal Orzel , Julien Grall , xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Stefano Stabellini , Bertrand Marquis , Volodymyr Babchuk , Xenia Ragiadakou , Ayan Kumar Halder References: <7a48c49e-2998-9e34-45ef-a1c3431fbffe@xen.org> From: Federico Serafini Organization: BUGSENG srl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22/06/23 10:50, Michal Orzel wrote: >>> diff --git a/xen/arch/arm/include/asm/vgic.h b/xen/arch/arm/include/asm/vgic.h >>> index 328fd46d1b..aa9f49409e 100644 >>> --- a/xen/arch/arm/include/asm/vgic.h >>> +++ b/xen/arch/arm/include/asm/vgic.h >>> @@ -355,8 +355,8 @@ bool vgic_evtchn_irq_pending(struct vcpu *v); >>> int domain_vgic_register(struct domain *d, int *mmio_count); >>> int domain_vgic_init(struct domain *d, unsigned int nr_spis); >>> void domain_vgic_free(struct domain *d); >>> -int vcpu_vgic_init(struct vcpu *vcpu); >>> -int vcpu_vgic_free(struct vcpu *vcpu); >>> +int vcpu_vgic_init(struct vcpu *v); >>> +int vcpu_vgic_free(struct vcpu *v); > I know that new VGIC (files under arch/arm/vgic/) is not covered by the MISRA work, but > functions there reuse the same prototypes. So by changing the parameter names here, we > should also change the names in the following definitions for consistency: > https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/arm/vgic/vgic-init.c;h=ea739d081e7879b44c4b05c862ad32c301105732;hb=HEAD#l201 > https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/arm/vgic/vgic-init.c;h=ea739d081e7879b44c4b05c862ad32c301105732;hb=HEAD#l242 > > I can do this by myself although it would be simpler to have all in one patch. > > ~Michal Hello Michal, I can do it. Regards -- Federico Serafini, M.Sc. Software Engineer, BUGSENG (http://bugseng.com)