Re: [PATCH v2] misra: add deviation for MISRA C Rule R11.8.

2025-01-02 Thread Stefano Stabellini
On Thu, 19 Dec 2024, Jan Beulich wrote: > On 19.12.2024 09:58, Nicola Vetrini wrote: > > On 2024-12-19 09:49, Jan Beulich wrote: > >> On 18.12.2024 15:25, Alessandro Zucchelli wrote: > >>> Rule 11.8 states as following: "A cast shall not remove any `const' or > >>> `volatile' qualification from the

Re: [PATCH v2] misra: add deviation for MISRA C Rule R11.8.

2024-12-19 Thread Jan Beulich
On 19.12.2024 09:58, Nicola Vetrini wrote: > On 2024-12-19 09:49, Jan Beulich wrote: >> On 18.12.2024 15:25, Alessandro Zucchelli wrote: >>> Rule 11.8 states as following: "A cast shall not remove any `const' or >>> `volatile' qualification from the type pointed to by a pointer". >>> >>> Function `

Re: [PATCH v2] misra: add deviation for MISRA C Rule R11.8.

2024-12-19 Thread Nicola Vetrini
On 2024-12-19 09:49, Jan Beulich wrote: On 18.12.2024 15:25, Alessandro Zucchelli wrote: Rule 11.8 states as following: "A cast shall not remove any `const' or `volatile' qualification from the type pointed to by a pointer". Function `__hvm_copy' in `xen/arch/x86/hvm/hvm.c' is a double-use func

Re: [PATCH v2] misra: add deviation for MISRA C Rule R11.8.

2024-12-19 Thread Jan Beulich
On 18.12.2024 15:25, Alessandro Zucchelli wrote: > Rule 11.8 states as following: "A cast shall not remove any `const' or > `volatile' qualification from the type pointed to by a pointer". > > Function `__hvm_copy' in `xen/arch/x86/hvm/hvm.c' is a double-use > function, where the parameter needs t

[PATCH v2] misra: add deviation for MISRA C Rule R11.8.

2024-12-18 Thread Alessandro Zucchelli
Rule 11.8 states as following: "A cast shall not remove any `const' or `volatile' qualification from the type pointed to by a pointer". Function `__hvm_copy' in `xen/arch/x86/hvm/hvm.c' is a double-use function, where the parameter needs to not be const because it can be set for write or not. As i