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 9825AC4332F for ; Thu, 14 Dec 2023 10:05:40 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.654384.1021240 (Exim 4.92) (envelope-from ) id 1rDias-0001nV-3t; Thu, 14 Dec 2023 10:05:26 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 654384.1021240; Thu, 14 Dec 2023 10:05:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rDias-0001nO-1Q; Thu, 14 Dec 2023 10:05:26 +0000 Received: by outflank-mailman (input) for mailman id 654384; Thu, 14 Dec 2023 10:05:24 +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 1rDiaq-0001nI-EM for xen-devel@lists.xenproject.org; Thu, 14 Dec 2023 10:05:24 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 4b171102-9a68-11ee-9b0f-b553b5be7939; Thu, 14 Dec 2023 11:05:22 +0100 (CET) Received: from [192.168.1.15] (host-82-60-45-193.retail.telecomitalia.it [82.60.45.193]) by support.bugseng.com (Postfix) with ESMTPSA id 9B34C4EE073A; Thu, 14 Dec 2023 11:05:21 +0100 (CET) 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: 4b171102-9a68-11ee-9b0f-b553b5be7939 Message-ID: Date: Thu, 14 Dec 2023 11:05:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: X86: MISRA C:2012 Rule 5.6 To: Jan Beulich Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Wei Liu , xen-devel@lists.xenproject.org, "consulting@bugseng.com" References: <9de5ec9d-1ebd-4fa9-89d4-e962d7c377e0@bugseng.com> <7222b529-ab39-4a18-a448-2a007992b9aa@suse.com> Content-Language: en-US, it From: Federico Serafini Organization: BUGSENG srl In-Reply-To: <7222b529-ab39-4a18-a448-2a007992b9aa@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/12/23 09:57, Jan Beulich wrote: > On 13.12.2023 12:44, Federico Serafini wrote: >> I have another question regarding Rule 5.6 ("A `typedef' name shall be >> a unique identifier"), this time for X86: >> the violations left [1] involve guest_intpte_t, guest_l1e_t and >> guest_l2e_t, which seem to be deliberately defined differently depending >> on the number of guest paging levels. >> I would like to propose a deviation for these types, do you agree? > > Yes. In fact I think we said so already when discussing this rule. The > whole rebuild-same-file-for-multiple-purposes can hardly work without > something along the lines of multiple ways of defining the same macros > and/or typedefs for each of the instances. Thanks for the feedback. -- Federico Serafini, M.Sc. Software Engineer, BUGSENG (http://bugseng.com)