Re: [PATCH 3/3] common/softirq: address violation of MISRA C Rule 13.6

2024-07-01 Thread Jan Beulich
On 25.06.2024 12:14, Alessandro Zucchelli wrote: > In the file common/softirq macro set_bit is called with argument > smp_processor_id. > Once expanded this set_bit's argument is used in sizeof operations > and thus 'smp_processor_id', being a macro that expands to a > function call with potential

Re: [PATCH 3/3] common/softirq: address violation of MISRA C Rule 13.6

2024-06-25 Thread Stefano Stabellini
On Tue, 25 Jun 2024, Alessandro Zucchelli wrote: > In the file common/softirq macro set_bit is called with argument > smp_processor_id. > Once expanded this set_bit's argument is used in sizeof operations > and thus 'smp_processor_id', being a macro that expands to a > function call with potential

[PATCH 3/3] common/softirq: address violation of MISRA C Rule 13.6

2024-06-25 Thread Alessandro Zucchelli
In the file common/softirq macro set_bit is called with argument smp_processor_id. Once expanded this set_bit's argument is used in sizeof operations and thus 'smp_processor_id', being a macro that expands to a function call with potential side effects, generates a violation. To address this viola