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

Re: [XEN PATCH v8 3/3] xen/x86: address violations of MISRA C:2012 Rule 7.2


  • To: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 19 Oct 2023 18:04:20 +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=pDzsckul1S4cNUeSrkIDA9DYg2SxvtrcBdw04tKj2kY=; b=KVA3bC18+JIAcZ5h1uqyaBbbRVFPV5/q1clJxE755HbwDFN4cS0JIoogzBpO/CAjWWgK44QrMvMw1I42dB50SXsoOcKQL6B/r7085c+XaJtj3lkxMogskC8XaQ87PGle44OqJUmSZcybUCYIzva/rYjrIuLWAYKRlGnFqgWFoI6MGrtZGSBVJILzqpYnyO+oQCz3mDgRi+bD6bBQe9AQCGL/px6nwdsRY1NVR21nz4ex1iR3era9Z8rMa5b1mzPZ+IhbdrNrXe2Qg5Bjy2F0zQi/PdgQ2tYHjqdumsTXk2hsOZlPWieNx3tsRen9DmlvrwKBkmj+byychwYb5a3odA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WMtUUvh0Cv0UbuwSXlO/BSzeIeyrHU8Pe1TJGhgYu4B6L4T+wUWS+jUmpUtli8s5XnAUiADHE1MkD64tYP485lSJX0T9Z7+vt42Dgn7pkm4RMFwoGG0eZtJg/0JeRta4GI8Lt6jRQfUoFerlHeCCQAwzNPgpsTv2K4Xr84a37f4mVjjuMpp37g0J+DY0hZYuezog5Ydp8MPyJcd9qigdAMtLLF5KLMG8h6tIMyztBhMg/z+8JECBlXPdUfduXDTvU8cyAeTSCK/8nzm8lWGrAkKJsd3mp3GqECoPm59f6/BQlA6Gpn0xL9UnBZD4jMWJEQNyGxC+BFOA3Iz0p6CQCQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: consulting@xxxxxxxxxxx, sstabellini@xxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>
  • Delivery-date: Thu, 19 Oct 2023 16:04:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.10.2023 15:11, Simone Ballarin wrote:
> 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".
> 
> Add the 'U' suffix to integers literals with unsigned type.
> 
> For the sake of uniformity, the following change is made:
> - add the 'U' suffix to switch cases in 'cpuid.c'
> 
> Signed-off-by: Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>
> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

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