[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] misra: address Rule 11.3 for NextMemoryDescriptor macro
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Dmytro Prokopchuk1 <dmytro_prokopchuk1@xxxxxxxx>
- Date: Thu, 11 Dec 2025 11:22:43 +0000
- Accept-language: en-US, uk-UA, ru-RU
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NQbi58JXUzkDen+l0T90nYWviOnUj4sHZjCNCvpXQW8=; b=PzMX6dmyegxV6a75zqcRwbvQhbsQQjmiXG+br8AhZMXyI38H/01gJhftXSgeqD9TGuRJRVMR0ii78eQpydmIR3hmh7FUb8XyRv9jcSvuGjlEQvwituykD+B03NiDzGSEI5A3kOTnogI4SPOsLGQ2tZJjd6A4U5GZvlyTIYz0l3MtN9l0FhAGqjaIhf2uEfiMULFbV/605EOohX6rvSqzI8IKemqaAUlj1Ap8YSgzuu+FFZFxz14ZJMqPqgdVxUQpwKAE4l33k4hJ+LTKpkdgwbj2E/Ww1kz1YV9N9dKrELaiuo3TtfLlS8wc5zETccK1I/IZJmp1SaDQ5MdSKlJJNQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jgO5tcuV3700cVRck17CoayPwYdTjyTuHbGY65V6oRD09rfY0MGE5ofWHPgLng8uWx9t80K2e0fYoHdPsqmOhNqqpYlRm2DV/kEYZA8+KLq6T/Tg6cHCz0wrx/jgjVV9mt/Gu1YxgTLdmQ2NqCRT04/zjJchcNpiySnCjUmoCYWr5kfk0VMpMn9oAhQduRQuX4iwDB2c+HbPcEWU+7BPpVX8cWbDM+Dor7vHTgEHr+M1BRVCy2LCVcd7N2vThpbbuD9Qj+AGrtJCX7CMYz5us//33ffL19WnXj9N3JpYffg1gt1/y+XLGdQNMGQKhchZS29N5hu6JEP6xCc/MFKvkQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Thu, 11 Dec 2025 11:22:55 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcREbgd161cNZLPEqc4+KUMk5T6LUaVeOAgAAAj4CAAkHvgA==
- Thread-topic: [PATCH] misra: address Rule 11.3 for NextMemoryDescriptor macro
On 12/10/25 02:54, Stefano Stabellini wrote:
> On Tue, 9 Dec 2025, Stefano Stabellini wrote:
>> On Thu, 23 Oct 2025, Dmytro Prokopchuk1 wrote:
>>> Given 'NextMemoryDescriptor()' macro is casting (UINT8 *) pointer to the
>>> (EFI_MEMORY_DESCRIPTOR *) pointer, which is not allowed by the MISRA C
>>> Rule 11.3 as they pointed to the different objects types.
>>>
>>> This macro is a part of the EFI imported code ('xen/include/efi/') and
>>> is deviated with a SAF comment.
>>>
>>> Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx>
>>
>> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
>>
>> I saw Jan's comment but I think this is OK
>
> I take it back I saw Dmytro managed to make a newer and better version
> of this following Jan's comment. All good.
Yes, you are right.
The v2 is here:
https://patchew.org/Xen/212a1ac4ee568f027f6cb7f9437aa42d2f0b6c41.1761599221.git.dmytro._5Fprokopchuk1@xxxxxxxx/
Dmytro.
|