[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH v2 3/4] x86emul: avoid shadowing to address MISRA C:2012 Rule 5.3
- To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 31 Jul 2023 13:48:04 +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=/e68tzN+r6d6d+ew1BHV68AgQEJX+eBQh5BTQkiEv1o=; b=EPkKavUwiIHMrUvPWyyjLBEzOWVjSBo8chG4iTcNUXZxQf6GYPUBTUQSB5oYcRKA02+4HDl4xm8/Uhw6WN3IKb66d/34EpQ2SKbrkbBeiBjWiwdHbBJTd1jCmgd1c+IrR0AJDFKW+3JcWm4DEMeBKYBtL/4VkFKdPiJJ5iQIwgGFpJG5zk8aLbnYt3Cu+zIGO/JELguKhcTKQVlYE93noQaNcGadWrNILfgfVJPbC3GiR/x5Ug6Mc3Wlb/VXJV1vcp5cGlu0AzTxibQkbtUZz6+Mu7wWF0vDsecCDuzHtCp1DUlpB8Wnb3dKCeTJXmMYqNnXAMebIDx09w3i9EyWig==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mQcqg+ufGJBkpsXsoO/lIUJqsWBZcwSYVB56SiKEOiEQkPEV7f4jbe65/g3stjYl5E6RmSr5b/0z1ZOx7VUiN9H7dgwfelP75ymmDA+uKq1diihIQjpOiSqeKlmEQ8DrFvQkBTW3JWl4/rfuYa+4d9sb3BDBY9jJ4Uv7Ba0kYMUqxgCk0GBv5rdaE7v9CbiUOcSs2Dxja/00yS0SA28cV+dOTcGh6QG7OVGRsOelcxCagPGpzlnyj8ayeOdbezgi6G7hXMNkJCUVIVKLrx/w+c5B8MDdK8WUOg8zpKebMjpcXGMMddLyGlqHKtrAT1gP3GQ2N6jouTiY5XGALaPOhA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: sstabellini@xxxxxxxxxx, michal.orzel@xxxxxxx, xenia.ragiadakou@xxxxxxx, ayan.kumar.halder@xxxxxxx, consulting@xxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 31 Jul 2023 11:48:09 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 31.07.2023 09:33, Nicola Vetrini wrote:
> Rule 5.3 has the following headline:
> "An identifier declared in an inner scope shall not hide an
> identifier declared in an outer scope"
>
> The declaration of local variable 'cpuid_leaf' causes
> shadowing with the homonymous function to happen, therefore
> the variable is renamed to avoid this.
>
> No functional changes.
>
> Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
|