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

2024-12-12 Thread Stefano Stabellini
On Thu, 12 Dec 2024, Jan Beulich wrote: > On 12.12.2024 03:29, Stefano Stabellini wrote: > > On Wed, 11 Dec 2024, Jan Beulich wrote: > >> On 11.12.2024 12:05, Alessandro Zucchelli wrote: > >>> Rule 11.1 states as following: "Conversions shall not be performed > >>> between a pointer to a function a

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

2024-12-12 Thread Jan Beulich
On 12.12.2024 03:29, Stefano Stabellini wrote: > On Wed, 11 Dec 2024, Jan Beulich wrote: >> On 11.12.2024 12:05, Alessandro Zucchelli wrote: >>> Rule 11.1 states as following: "Conversions shall not be performed >>> between a pointer to a function and any other type". >>> >>> In "xen/common/bug.c",

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

2024-12-11 Thread Stefano Stabellini
On Wed, 11 Dec 2024, Jan Beulich wrote: > On 11.12.2024 12:05, Alessandro Zucchelli wrote: > > Rule 11.1 states as following: "Conversions shall not be performed > > between a pointer to a function and any other type". > > > > In "xen/common/bug.c", in order to get additional debug information, >

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

2024-12-11 Thread Jan Beulich
On 11.12.2024 12:05, Alessandro Zucchelli wrote: > Rule 11.1 states as following: "Conversions shall not be performed > between a pointer to a function and any other type". > > In "xen/common/bug.c", in order to get additional debug information, > pointer "bug_fn_t *fn" in the data section is conv

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

2024-12-11 Thread Alessandro Zucchelli
Rule 11.1 states as following: "Conversions shall not be performed between a pointer to a function and any other type". In "xen/common/bug.c", in order to get additional debug information, pointer "bug_fn_t *fn" in the data section is converted to a function pointer, which is then used to get such