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 side effects, generates a violation. > > To address this violation the value of smp_processor_id is therefore > stored in a variable called 'cpu' before passing it to macro set_bit. > > No functional change. > > Signed-off-by: Alessandro Zucchelli <alessandro.zucche...@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>