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 F3A90EB64D7 for ; Tue, 20 Jun 2023 12:51:26 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.551817.861540 (Exim 4.92) (envelope-from ) id 1qBap5-00083n-0v; Tue, 20 Jun 2023 12:51:03 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 551817.861540; Tue, 20 Jun 2023 12:51:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qBap4-00083g-Ti; Tue, 20 Jun 2023 12:51:02 +0000 Received: by outflank-mailman (input) for mailman id 551817; Tue, 20 Jun 2023 12:51:01 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qBap3-00083a-Q8 for xen-devel@lists.xenproject.org; Tue, 20 Jun 2023 12:51:01 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qBaoy-00061d-HQ; Tue, 20 Jun 2023 12:50:56 +0000 Received: from 54-240-197-239.amazon.com ([54.240.197.239] helo=[192.168.9.99]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qBaoy-0007IV-8p; Tue, 20 Jun 2023 12:50:56 +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=2gn8dk+Qs2WZ26ptO0KEbmu9ELwGFxdQJPKPG/e2ky0=; b=ZFB/BaEdZ0Vu1ycmQ5vNXMltRI k32/Rq2llEV41NPCQNxzJTLXZCIKI7VkqxfPWXXPCH9YC3Q1DJKXkfoV16IJOts9CVbsre91kDga+ wINOiyCJiFUQ3t9G5lACTq+8NGOp5XV/jM7jZo6td/emEGeYsH0EKiyCNHRHQr62hWVU=; Message-ID: <9ce66128-5906-af48-e930-1da00610c1fa@xen.org> Date: Tue, 20 Jun 2023 13:50:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [XEN PATCH 05/13] xen/common: fixed violations of MISRA C:2012 Rule 7.2 Content-Language: en-US To: Jan Beulich , Simone Ballarin Cc: consulting@bugseng.com, Gianluca Luparini , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Stefano Stabellini , Bertrand Marquis , Michal Orzel , Xenia Ragiadakou , Ayan Kumar , xen-devel@lists.xenproject.org References: <8aff4bc56b29372345e828462766d803b8c9b710.1687250177.git.gianluca.luparini@bugseng.com> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 20/06/2023 13:43, Jan Beulich wrote: > On 20.06.2023 12:34, Simone Ballarin wrote: >> From: Gianluca Luparini >> >> The xen sources contains violations of MISRA C:2012 Rule 7.2 whose headline states: >> "A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type". >> >> I propose to use "U" as a suffix to explicitly state when an integer constant is represented in an unsigned type. >> >> Signed-off-by: Simone Ballarin >> --- >> xen/common/device_tree.c | 4 ++-- >> xen/include/xen/libfdt/fdt.h | 2 +- >> xen/include/xen/libfdt/libfdt.h | 2 +- >> 3 files changed, 4 insertions(+), 4 deletions(-) > > I think me and a few other people being on Cc here is attributed to the > (misleading) title. The set of touched files fully maps to "DEVICE TREE" > in ./MAINTAINERS afaict, which the prefix in the title would then also > be nice to express. > > That said I'm not sure whether libfdt code actually wants touching this > way. It doesn't want to be touched because this is code we imported as-is from an external project. In fact this is already part of the excluded list. Simone, please have a look at docs/misra/exclude-list.json to check if a file is in-scope for MISRA. Cheers, -- Julien Grall