Re: x86/bitops and MISRA C:2012 Rule 5.5

2024-03-15 Thread Federico Serafini
On 15/03/24 12:13, Andrew Cooper wrote: On 15/03/2024 11:07 am, Federico Serafini wrote: Hello everyone, there are violations of Rule 5.5 ("Identifiers shall be distinct from macro names") in xen/arch/x86/include/asm/bitops.h. You can see them at [1]. Do you agree to distinguish between functi

Re: x86/bitops and MISRA C:2012 Rule 5.5

2024-03-15 Thread Andrew Cooper
On 15/03/2024 11:07 am, Federico Serafini wrote: > Hello everyone, > > there are violations of Rule 5.5 ("Identifiers shall be distinct > from macro names") in xen/arch/x86/include/asm/bitops.h. > You can see them at [1]. > > Do you agree to distinguish between function-like macros and > inline fun

x86/bitops and MISRA C:2012 Rule 5.5

2024-03-15 Thread Federico Serafini
Hello everyone, there are violations of Rule 5.5 ("Identifiers shall be distinct from macro names") in xen/arch/x86/include/asm/bitops.h. You can see them at [1]. Do you agree to distinguish between function-like macros and inline functions by adding a suffix to the functions? I thought about "_