Re: [PATCH] cpumask: guard cpumask_of_node() macro argument

2020-05-27 Thread Guenter Roeck
On Wed, May 27, 2020 at 03:46:08PM +0200, Arnd Bergmann wrote: > drivers/hwmon/amd_energy.c:195:15: error: invalid operands to binary > expression ('void' and 'int') > (channel - data->nr_cpus)); > ~^~~

[PATCH] cpumask: guard cpumask_of_node() macro argument

2020-05-27 Thread Arnd Bergmann
drivers/hwmon/amd_energy.c:195:15: error: invalid operands to binary expression ('void' and 'int') (channel - data->nr_cpus)); ~^ include/asm-generic/topology.h:51:42: note: expanded from macro