[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XEN PATCH 03/13] xen/x86: fixed violations of MISRA C:2012 Rule 7.2


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 21 Jun 2023 09:04:25 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8k10gsySPbGGUaRx/m7J7snpHY5TgDta6KZKrQEfU64=; b=J2g/v5dC87FaS0Ygx7BjcpUbX4VbBTGQNvG2bReB/ilLbUOXf+4i5Nqxi9cZtgRFLf0m5ANTm/nkV/7bfwIgA+mf1g2gNjz9vIov1vfuZy8KUYs9T7Ph8xmzp8oLIGXiG8gY1EC8eFoCra60s41G0SM74yoHsubhaz2QjrmGTshJvhXmIsu/qiT0hbcKRfGvo+doHU4Rb3gIvs+d0doe0CH+2CPChbvNg2tV3wvU15RuTWZasdZ+xGtdKUS/pS+LqNzEEkMWhNdUhOmqiNnQY05nt+fnuRzNlNbVkADR4pIKpcV77RACfOLzbTFVWg1+GYsvjopsnlSTWS6VDE/LTg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mvys7w9Ob88jsYKBSARbKJ1+//MLZwiPTBo+tgB16xnFp224od7XIKhoYvfmcD35PcPLk62z6f8hQXbIOK4mi47sVF27PxqyRLA28TwKQf3tW0IkCrjZcTrdqqwZDDgGhMfEMdM8sztA6ae+ByECBDA61sUGmJadXh7HANzOn+CuokR3Xz3EEq6DL1NO/9iHeZm4ElmoX56vLbwmTK4Mfdx5sCfW0Vwp4P4XG8s+3/07z0Efz9+8IXgGT3TT8dsdMKqdA5KZpEyiyHRBV55kXSV3QmSYmITSm859PBD0/i5nAbxVTBWwaZJk4W5Vuu5MX9vxYhS6DD0f3vC4Ulcdtw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, consulting@xxxxxxxxxxx, Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Xenia Ragiadakou <Xenia.Ragiadakou@xxxxxxx>, Ayan Kumar <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Wed, 21 Jun 2023 07:04:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.06.2023 22:49, Stefano Stabellini wrote:
> On Tue, 20 Jun 2023, Simone Ballarin wrote:
>> From: Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>
>>
>> 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 <simone.ballarin@xxxxxxxxxxx>
> 
> Commit message aside:
> 
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> 
> FYI I would use the following as commit message title to make it unique:
> 
> xen/x86/hvm/svm: fixed violations of MISRA C:2012 Rule 7.2

Along the lines of my earlier comment:

x86/svm: fix violations of MISRA C:2012 Rule 7.2

or (imo less desirable)

xen/svm: fix violations of MISRA C:2012 Rule 7.2

At the very least the hvm/ infix is fully redundant.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.