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

Re: [XEN PATCH v6 4/7] xen/lib: address violations of MISRA C:2012 Rule 7.2


  • To: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 12 Sep 2023 18:07:35 +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=NCU06Ja0kH7t2lhMxq/LOq79Old3jT8gHSkpaX/i3aU=; b=aQmV1qzbehxpWxZfXxpxU6TuSa21f1QmZunERP4PJDoZx+Y8zzdZu9KWDl8AyE3m3BGcl5w9m8GIG2cMQGPnz5xTAFOPXRfvXxhrGdJyHJwcSNnZtJv9UZ068UW69cQm/6jzTnWDnHQXnnHuA55dTFLUpAQ9xxNQuXDzykxEaEZxgDJLpgWDHKe0IzgVsqvOcyddrce74B5efbKw4rDIe2T4j9YW4RX3KbDt7ud/jiNtEyhWdCs3IAiT9tSG2KWZwrIaR8mQuvgAdJM1axKbI5gZVrAqQ4xk6ZJL6wFRoHphI8jbqvIX8Dqmu7+Y03c0Dw0nJsCrEPQ4uLImtGvMQg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n019QKSE+TLI1ILiH7EJu1dcxBwPnRb3RRVy44fGoEmo44/EADua1pVhcIc0ydkN4IAy1G4uXvkrBhmXR7HNTokFifMfJO+6xX/3af5itqp59KP54poswkCQnsumfdhwrBmqtPRJbUisAs7IUwuz9/krjjVA8IEsVBaGMtesKstXfPZTF1+6DTWQ0m6HRVyR16pKvpKlLhFV/SbpgBvbL3632CbOQuwExvcXvFgdZA1AisGkqL3joN0N9eoZxR7i6uq8Dtwo9bXokd81UcgJJeMtOEfbAACr1U4kfrNnebjxP+1BoAJ+Vl8/Z+IWLbFtdDyAh8Ve35Ar68PcnD2vBA==
  • 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>, Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 12 Sep 2023 16:07:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 12.09.2023 17:39, 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: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
> Signed-off-by: Gianluca Luparini <gianluca.luparini@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®.