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 47192C4167B for ; Thu, 7 Dec 2023 12:55:40 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.649846.1014855 (Exim 4.92) (envelope-from ) id 1rBDud-00074P-Mw; Thu, 07 Dec 2023 12:55:31 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 649846.1014855; Thu, 07 Dec 2023 12:55:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rBDud-00074I-KV; Thu, 07 Dec 2023 12:55:31 +0000 Received: by outflank-mailman (input) for mailman id 649846; Thu, 07 Dec 2023 12:55:30 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rBDuc-00073U-6G for xen-devel@lists.xenproject.org; Thu, 07 Dec 2023 12:55:30 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rBDuY-0003Ca-AE; Thu, 07 Dec 2023 12:55:26 +0000 Received: from [15.248.3.113] (helo=[10.24.67.25]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1rBDuY-0005U6-5B; Thu, 07 Dec 2023 12:55:26 +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=ia9VimKyVx6fHUQ4KOrk4GrQFXEWyJEie/mM4lkRn+E=; b=xiVCeEFJ9Pt6RVGtc30UFO6fXI j93IfmUduVrPJ1Ot1h0oGPcyzUdfSUJLeXyThU9zTvn73wd9D3kwd9Tx4qRngAS12Ta4uMpO3VHtD hkXKPkNz8OicvnPHfeHb1AZYp5TNJlWvB70f7baNmZ3eUswxCG1AXrs+E93sj0BNpils=; Message-ID: <0d51ddb4-1bbc-4ed3-bc0d-3efdcb00f70d@xen.org> Date: Thu, 7 Dec 2023 12:55:25 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ARM: MISRA C:2012 Rule 5.6 Content-Language: en-GB To: Jan Beulich , Federico Serafini Cc: Stefano Stabellini , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Xen-devel References: <5a732dc4-70c7-4c03-b6fa-02d5074441bc@bugseng.com> <924a50ac-7200-45c7-b486-763b01b44a57@bugseng.com> <65b668a5-7518-4e96-8357-c3fc680e8760@suse.com> From: Julien Grall In-Reply-To: <65b668a5-7518-4e96-8357-c3fc680e8760@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/12/2023 12:44, Jan Beulich wrote: > On 07.12.2023 12:48, Federico Serafini wrote: >> On 07/12/23 12:43, Federico Serafini wrote: >>> Hello everyone, >>> >>> Rule 5.6 states that a typedef name shall be a unique identifier. >>> This is to avoid developer confusion. >>> >>> For ARM, the violations left [1] are generated by two definitions >>> of the type phys_addr_t within two different files. >>> I would like to ask if this is intentional or not: >>> if it is intentional and it is not causing any confusion between XEN >>> developers, then I think violations involving phys_addr_t can be >>> deviated. >>> >>> [1] >>> https://saas.eclairit.com:3787/fs/var/local/eclair/XEN.ecdf/ECLAIR_normal/staging/ARM64-2023/429/PROJECT.ecd;/by_service/MC3R1.R5.6.html >> >> Adding XEN mailing list in CC. > > Thanks. > > These are files ported from Linux, where I assume the typedef-s were added > to limit the changes which would need making elsewhere. Still I think that's > exactly what we (now) have xen/linux-compat.h for. IOW - just move the > typedef-s there? +1. I was about to suggest the same. Cheers, -- Julien Grall