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

2025-01-09 Thread Stefano Stabellini
On Thu, 9 Jan 2025, 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 to

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

2025-01-09 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