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 51FE5C636CD for ; Tue, 7 Feb 2023 12:25:42 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.491062.760009 (Exim 4.92) (envelope-from ) id 1pPN2F-0006jA-Fh; Tue, 07 Feb 2023 12:25:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 491062.760009; Tue, 07 Feb 2023 12:25:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pPN2F-0006j3-B4; Tue, 07 Feb 2023 12:25:19 +0000 Received: by outflank-mailman (input) for mailman id 491062; Tue, 07 Feb 2023 12:25:18 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pPN2D-0006ix-W2 for xen-devel@lists.xenproject.org; Tue, 07 Feb 2023 12:25:18 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pPN2D-0000fV-7O; Tue, 07 Feb 2023 12:25:17 +0000 Received: from [54.239.6.184] (helo=[192.168.19.254]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pPN2D-000827-0f; Tue, 07 Feb 2023 12:25:17 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=oRKxtklRriJfGpyyw3SWVXtexrI5aDfH8hx9UnXSOQo=; b=YEZic+YqEAcpH08jzHNLItnIFl VhMXxRMjsqq7ZOszl0mzQY32/i1/zpQ8BcTLajCYLmuPViXvHexFiUyyFKI1TQx7yqilMZ5G9+QrI xOZR15k1chfJUKQVrVNptBOuJaVf2YF20iS1xOzsnijidaj72f3apXLjA3H6trkQ0uH4=; Message-ID: <43562da4-53a1-df7a-dcf3-2af62a95f42d@xen.org> Date: Tue, 7 Feb 2023 12:25:15 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 1/2] xen/device_tree: fix Eclair findings for MISRA C 2012 Rule 20.7 Content-Language: en-US To: Xenia Ragiadakou , Luca Fancellu Cc: Xen-devel , Stefano Stabellini References: <20230203190908.211541-1-burzalodowa@gmail.com> <20230203190908.211541-2-burzalodowa@gmail.com> <63d81215-fd4a-e2f2-e145-3ee115b7df14@xen.org> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 07/02/2023 10:46, Xenia Ragiadakou wrote: > > On 2/7/23 12:39, Julien Grall wrote: >> Hi, >> >> On 07/02/2023 10:23, Luca Fancellu wrote: >>> >>> >>>> On 3 Feb 2023, at 19:09, Xenia Ragiadakou >>>> wrote: >>>> >>> >>> I’m not really a supporter of empty commit message, but it’s up to >>> the maintainer :) >> >> +1. In this case a brief summary of the rule would be handy for those >> that are not well-versed with MISRA. >> >> This can be dealt on commit if you propose a new commit message. > > I 'm refrained from stating the rule as is because it is strict and it > is not applied as is. I am a bit confused with this statement. From misra/..., we are supporting rule 20.7. So why aren't applying it strictly? And if it is not applied as-is, shouldn't we document the violation (if any)? > > "Add parentheses around macro parameters when the precedence and > associativity of the performed operators can lead to unintended order of > evaluation." > > Is this ok? I am OK with this. Is there any ID from Eclair that could be used to track each error (and so we can confirm they have disappeared)? Cheers, -- Julien Grall