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

Re: [XEN PATCH v3 06/15] xen/efi: fix violations of MISRA C:2012 Rule 7.2


  • To: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 12 Jul 2023 12:48:02 +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=d28IX6SUR1otnle9UfRUzrwIC6qGz98aNQ8xAMS7yi8=; b=FCc70OjyCXEV4oGWPtQRztJhNfG9HE56crCuhIriIBytQgSVVDirCMhQ77qpbQqCmo2Q4T7ro5MiWKfwH/RWIUn550gWASkWnZr8gPlAPEN6wDYNgmuNN+XBsQF88quqREt4E7KJx+UuuDqyURzNeALkKxwdSPCXAX1goE4Mk5pozE6UKb7VHOSLpXWuQTRoKUd++W+mCWh0Ptt9siumF5m5dHFqFDitCcl1EYcBGh5uzOWyi6iT8rh82dL5vSg7CFlUDwjqa7DB6p2m1T/dAWuWPaja+4dwhSePqUYv5gCJAieN5bC4c7DxnE868DhAEnAFFSa3qGAbDAIYbHWFyw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lk5i5eAOTlRyVHKvCDTDEv3kn4EWsObjttgoyP99yArNHpHHt8CyNEqg4rPFeRpgGM/6hC0rd20q/927NXUZ7d98v6xM/eOvmJvNHSD2ZgpOwiVp/gQ+ZlBNCDEP/Fp2lZmkidcKuiBpmPDsfk+Rgff3NcvBKc5jCow/dHchAqxkUDAiF6MdcMPeC7P+SNx8ol0hEisRhvzHV5b2bO1ebxly3b5GF8qeQkDD7yTV3XV2qOZRHuEzFhn4Tf8U+FBikGxq25HqVGGaSlv73xMgIl0a9cdeWKnuzpsSBQ8iwSboNbQqAtXJUUDHMV16BPfqccDwCdp05/miFGHCcaZ3mQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: consulting@xxxxxxxxxxx, Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Xenia Ragiadakou <Xenia.Ragiadakou@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, Luca Fancellu <luca.fancellu@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 12 Jul 2023 10:48:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 12.07.2023 12:32, 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".
> 
> Add the 'U' suffix to integers literals with unsigned type.
> 
> For the sake of uniformity, the following changes are made:
> - add the 'U' suffix to all first macro's arguments in 'boot.c'
> - add the 'U' suffix near '0x3fffffff' in 'runtime.c'
> 
> Signed-off-by: Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx>
> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>
> Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>
> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>

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®.