tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next head: 156ad7f9e0b39cfa0ed02e42c6e1c258c4e81e05 commit: 8abee9566b7e8eecf566c4daf6be062a27369890 [13/18] hwmon: Add amd_energy driver to report energy counters config: i386-randconfig-r013-20200527 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce (this is a W=1 build): git checkout 8abee9566b7e8eecf566c4daf6be062a27369890 # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>, old ones prefixed by <<): In file included from arch/x86/include/asm/cpumask.h:5, from arch/x86/include/asm/msr.h:11, from arch/x86/include/asm/processor.h:22, from arch/x86/include/asm/cpu_device_id.h:16, from drivers/hwmon/amd_energy.c:6: drivers/hwmon/amd_energy.c: In function 'amd_energy_read': >> include/asm-generic/topology.h:51:36: error: void value not ignored as it ought to be 51 | #define cpumask_of_node(node) ((void)node, cpu_online_mask) include/linux/cpumask.h:618:72: note: in definition of macro 'cpumask_first_and' 618 | #define cpumask_first_and(src1p, src2p) cpumask_next_and(-1, (src1p), (src2p)) | ^~~~~ drivers/hwmon/amd_energy.c:194:6: note: in expansion of macro 'cpumask_of_node' 194 | cpumask_of_node | ^~~~~~~~~~~~~~~ include/asm-generic/topology.h:51:46: warning: left-hand operand of comma expression has no effect [-Wunused-value] 51 | #define cpumask_of_node(node) ((void)node, cpu_online_mask) | ^ include/linux/cpumask.h:618:72: note: in definition of macro 'cpumask_first_and' 618 | #define cpumask_first_and(src1p, src2p) cpumask_next_and(-1, (src1p), (src2p)) | ^~~~~ drivers/hwmon/amd_energy.c:194:6: note: in expansion of macro 'cpumask_of_node' 194 | cpumask_of_node | ^~~~~~~~~~~~~~~ vim +51 include/asm-generic/topology.h 251060006003b7 Lee Schermerhorn 2010-08-09 46 f0b848ce6fe906 Rusty Russell 2008-12-13 47 #ifndef cpumask_of_node b339752d054fb3 Tejun Heo 2017-08-28 48 #ifdef CONFIG_NEED_MULTIPLE_NODES b339752d054fb3 Tejun Heo 2017-08-28 49 #define cpumask_of_node(node) ((node) == 0 ? cpu_online_mask : cpu_none_mask) b339752d054fb3 Tejun Heo 2017-08-28 50 #else f0b848ce6fe906 Rusty Russell 2008-12-13 @51 #define cpumask_of_node(node) ((void)node, cpu_online_mask) f0b848ce6fe906 Rusty Russell 2008-12-13 52 #endif b339752d054fb3 Tejun Heo 2017-08-28 53 #endif 8c5a09082f4e61 Christoph Lameter 2005-06-23 54 #ifndef pcibus_to_node 271cad6d7e91ff Andi Kleen 2008-02-11 55 #define pcibus_to_node(bus) ((void)(bus), -1) 8c5a09082f4e61 Christoph Lameter 2005-06-23 56 #endif 8c5a09082f4e61 Christoph Lameter 2005-06-23 57 :::::: The code at line 51 was first introduced by commit :::::: f0b848ce6fe9062d504d997e9e97fe0f87d57217 cpumask: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask :::::: TO: Rusty Russell <rusty@xxxxxxxxxxxxxxx> :::::: CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip