========== build_clang - FAILED tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files ../drivers/phy/broadcom/phy-bcm-ns-usb3.c:206:17: warning: cast to smaller integer type 'enum bcm_ns_family' from 'const void *' [-Wvoid-pointer-to-enum-cast] 206 | usb3->family = (enum bcm_ns_family)device_get_match_data(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. ../drivers/net/ethernet/8390/pcnet_cs.c:1169:9: warning: variable 'xfer_count' set but not used [-Wunused-but-set-variable] 1169 | int xfer_count = count; | ^ 1 warning generated. In file included from ../drivers/net/ethernet/broadcom/b44.c:17: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/net/ethernet/broadcom/bcmsysport.c:49:1: warning: unused function 'txchk_readl' [-Wunused-function] 49 | BCM_SYSPORT_IO_MACRO(txchk, SYS_PORT_TXCHK_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:32:19: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 32 | static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off) \ | ^~~~~~~~~~~~ :253:1: note: expanded from here 253 | txchk_readl | ^~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:49:1: warning: unused function 'txchk_writel' [-Wunused-function] 49 | BCM_SYSPORT_IO_MACRO(txchk, SYS_PORT_TXCHK_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:37:20: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 37 | static inline void name##_writel(struct bcm_sysport_priv *priv, \ | ^~~~~~~~~~~~~ :254:1: note: expanded from here 254 | txchk_writel | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:51:1: warning: unused function 'tbuf_readl' [-Wunused-function] 51 | BCM_SYSPORT_IO_MACRO(tbuf, SYS_PORT_TBUF_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:32:19: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 32 | static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off) \ | ^~~~~~~~~~~~ :257:1: note: expanded from here 257 | tbuf_readl | ^~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:51:1: warning: unused function 'tbuf_writel' [-Wunused-function] 51 | BCM_SYSPORT_IO_MACRO(tbuf, SYS_PORT_TBUF_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:37:20: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 37 | static inline void name##_writel(struct bcm_sysport_priv *priv, \ | ^~~~~~~~~~~~~ :258:1: note: expanded from here 258 | tbuf_writel | ^~~~~~~~~~~ 4 warnings generated. In file included from ../drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:22: In file included from ../drivers/net/ethernet/broadcom/bnx2x/bnx2x.h:19: In file included from ../include/linux/pci.h:27: In file included from ../include/linux/mod_devicetable.h:14: In file included from ../include/linux/uuid.h:11: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. In file included from ../drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:17: In file included from ../include/linux/pci.h:27: In file included from ../include/linux/mod_devicetable.h:14: In file included from ../include/linux/uuid.h:11: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/staging/rtl8712/rtl8712_recv.c:139:6: warning: variable 'drvinfo_sz' set but not used [-Wunused-but-set-variable] 139 | u16 drvinfo_sz; | ^ 1 warning generated. ../scripts/Makefile.build:244: ../drivers/net/ethernet/freescale/dpaa2/Makefile: dpaa2-mac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch ../drivers/staging/rtl8192e/rtllib_crypt_tkip.c:641:7: warning: variable 'iv32' set but not used [-Wunused-but-set-variable] 641 | u32 iv32 = tkey->tx_iv32; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_efuse.c:285:6: warning: variable 'efuseValue' set but not used [-Wunused-but-set-variable] 285 | u32 efuseValue; | ^ 1 warning generated. In file included from ../drivers/net/ethernet/intel/igc/igc_ethtool.c:5: In file included from ../include/linux/if_vlan.h:10: In file included from ../include/linux/netdevice.h:24: In file included from ../include/linux/timer.h:6: In file included from ../include/linux/ktime.h:25: In file included from ../include/linux/jiffies.h:10: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. In file included from ../drivers/net/ethernet/intel/ixgbevf/ethtool.c:9: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/net/ethernet/natsemi/ns83820.c:1704:6: warning: variable 'loops' set but not used [-Wunused-but-set-variable] 1704 | int loops = 0; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:288:6: warning: variable 'poll_cnt' set but not used [-Wunused-but-set-variable] 288 | u8 poll_cnt = 0; | ^ 1 warning generated. In file included from ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:43: In file included from ../include/linux/tcp.h:17: In file included from ../include/linux/skbuff.h:15: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 2 warnings generated. ../drivers/staging/rtl8723bs/core/rtw_recv.c:2030:7: warning: variable 'cnt' set but not used [-Wunused-but-set-variable] 2030 | int cnt = 0; | ^ 1 warning generated. ../drivers/net/ethernet/ni/nixge.c:1271:12: warning: cast to smaller integer type 'enum nixge_version' from 'const void *' [-Wvoid-pointer-to-enum-cast] 1271 | version = (enum nixge_version)of_id->data; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. In file included from ../drivers/staging/rtl8723bs/core/rtw_security.c:8: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:80: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_xmit.c:1938:13: warning: variable 'drop_cnt' set but not used [-Wunused-but-set-variable] 1938 | static u32 drop_cnt; | ^ In file included from ../drivers/staging/rtl8723bs/core/rtw_xmit.c:7: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:80: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 2 warnings generated. ../drivers/staging/rtl8723bs/hal/hal_com.c:964:6: warning: variable 'res' set but not used [-Wunused-but-set-variable] 964 | u32 res, i = 0; | ^ 1 warning generated. In file included from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c:8: In file included from ../include/linux/delay.h:23: In file included from ../include/linux/sched.h:13: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5721:7: error: initializing 'u32 *' (aka 'unsigned int *') with an expression of type 'const u32 *' (aka 'const unsigned int *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5721 | u32 *rss_context = &rxfh->rss_context; | ^ ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5724:37: error: passing 'const struct ethtool_rxfh_param *' to parameter of type 'struct ethtool_rxfh_param *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5724 | if (!mvpp2_ethtool_rxfh_okay(port, rxfh)) | ^~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5700:36: note: passing argument to parameter 'rxfh' here 5700 | struct ethtool_rxfh_param *rxfh) | ^ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5744:37: error: passing 'const struct ethtool_rxfh_param *' to parameter of type 'struct ethtool_rxfh_param *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5744 | if (!mvpp2_ethtool_rxfh_okay(port, rxfh)) | ^~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5700:36: note: passing argument to parameter 'rxfh' here 5700 | struct ethtool_rxfh_param *rxfh) | ^ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5814:25: error: use of undeclared identifier 'mvpp2_delete_rxfh_context' 5814 | .delete_rxfh_context = mvpp2_delete_rxfh_context, | ^ 4 errors generated. make[8]: *** [../scripts/Makefile.build:244: drivers/net/ethernet/marvell/mvpp2/mvpp2_main.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c:9: In file included from ../include/linux/delay.h:23: In file included from ../include/linux/sched.h:13: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. make[7]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/marvell/mvpp2] Error 2 make[6]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/marvell] Error 2 make[6]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c:8: In file included from ../drivers/net/ethernet/qlogic/qlcnic/qlcnic.h:10: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. make[5]: *** [../scripts/Makefile.build:485: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:485: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1925: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:224: __sub-make] Error 2 make: *** [Makefile:224: __sub-make] Error 2 tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/.gitignore: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/Makefile: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/config: warning: ignored by one of the .gitignore files tools/testing/selftests/kvm/settings: warning: ignored by one of the .gitignore files ../drivers/phy/broadcom/phy-bcm-ns-usb3.c:206:17: warning: cast to smaller integer type 'enum bcm_ns_family' from 'const void *' [-Wvoid-pointer-to-enum-cast] 206 | usb3->family = (enum bcm_ns_family)device_get_match_data(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. ../drivers/net/ethernet/8390/pcnet_cs.c:1169:9: warning: variable 'xfer_count' set but not used [-Wunused-but-set-variable] 1169 | int xfer_count = count; | ^ 1 warning generated. In file included from ../drivers/net/ethernet/broadcom/b44.c:17: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/net/ethernet/broadcom/bcmsysport.c:49:1: warning: unused function 'txchk_readl' [-Wunused-function] 49 | BCM_SYSPORT_IO_MACRO(txchk, SYS_PORT_TXCHK_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:32:19: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 32 | static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off) \ | ^~~~~~~~~~~~ :253:1: note: expanded from here 253 | txchk_readl | ^~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:49:1: warning: unused function 'txchk_writel' [-Wunused-function] 49 | BCM_SYSPORT_IO_MACRO(txchk, SYS_PORT_TXCHK_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:37:20: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 37 | static inline void name##_writel(struct bcm_sysport_priv *priv, \ | ^~~~~~~~~~~~~ :254:1: note: expanded from here 254 | txchk_writel | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:51:1: warning: unused function 'tbuf_readl' [-Wunused-function] 51 | BCM_SYSPORT_IO_MACRO(tbuf, SYS_PORT_TBUF_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:32:19: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 32 | static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off) \ | ^~~~~~~~~~~~ :257:1: note: expanded from here 257 | tbuf_readl | ^~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:51:1: warning: unused function 'tbuf_writel' [-Wunused-function] 51 | BCM_SYSPORT_IO_MACRO(tbuf, SYS_PORT_TBUF_OFFSET); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bcmsysport.c:37:20: note: expanded from macro 'BCM_SYSPORT_IO_MACRO' 37 | static inline void name##_writel(struct bcm_sysport_priv *priv, \ | ^~~~~~~~~~~~~ :258:1: note: expanded from here 258 | tbuf_writel | ^~~~~~~~~~~ 4 warnings generated. ../drivers/staging/rtl8712/rtl8712_recv.c:139:6: warning: variable 'drvinfo_sz' set but not used [-Wunused-but-set-variable] 139 | u16 drvinfo_sz; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_efuse.c:285:6: warning: variable 'efuseValue' set but not used [-Wunused-but-set-variable] 285 | u32 efuseValue; | ^ 1 warning generated. ../drivers/staging/rtl8192e/rtllib_crypt_tkip.c:641:7: warning: variable 'iv32' set but not used [-Wunused-but-set-variable] 641 | u32 iv32 = tkey->tx_iv32; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:288:6: warning: variable 'poll_cnt' set but not used [-Wunused-but-set-variable] 288 | u8 poll_cnt = 0; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_recv.c:2030:7: warning: variable 'cnt' set but not used [-Wunused-but-set-variable] 2030 | int cnt = 0; | ^ 1 warning generated. In file included from ../drivers/staging/rtl8723bs/core/rtw_security.c:8: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:80: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. In file included from ../drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:17: In file included from ../include/linux/pci.h:27: In file included from ../include/linux/mod_devicetable.h:14: In file included from ../include/linux/uuid.h:11: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. In file included from ../drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:22: In file included from ../drivers/net/ethernet/broadcom/bnx2x/bnx2x.h:19: In file included from ../include/linux/pci.h:27: In file included from ../include/linux/mod_devicetable.h:14: In file included from ../include/linux/uuid.h:11: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/staging/rtl8723bs/hal/hal_com.c:964:6: warning: variable 'res' set but not used [-Wunused-but-set-variable] 964 | u32 res, i = 0; | ^ 1 warning generated. ../drivers/staging/rtl8723bs/core/rtw_xmit.c:1938:13: warning: variable 'drop_cnt' set but not used [-Wunused-but-set-variable] 1938 | static u32 drop_cnt; | ^ In file included from ../drivers/staging/rtl8723bs/core/rtw_xmit.c:7: In file included from ../drivers/staging/rtl8723bs/include/drv_types.h:17: In file included from ../include/linux/sched/signal.h:5: In file included from ../include/linux/rculist.h:11: In file included from ../include/linux/rcupdate.h:26: In file included from ../include/linux/irqflags.h:18: In file included from ../arch/x86/include/asm/irqflags.h:80: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 2 warnings generated. ../scripts/Makefile.build:244: ../drivers/net/ethernet/freescale/dpaa2/Makefile: dpaa2-mac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch In file included from ../drivers/net/ethernet/intel/ixgbevf/ethtool.c:9: In file included from ../include/linux/module.h:13: In file included from ../include/linux/stat.h:19: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. In file included from ../drivers/net/ethernet/intel/igc/igc_ethtool.c:5: In file included from ../include/linux/if_vlan.h:10: In file included from ../include/linux/netdevice.h:24: In file included from ../include/linux/timer.h:6: In file included from ../include/linux/ktime.h:25: In file included from ../include/linux/jiffies.h:10: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ 1 warning generated. ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5721:7: error: initializing 'u32 *' (aka 'unsigned int *') with an expression of type 'const u32 *' (aka 'const unsigned int *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5721 | u32 *rss_context = &rxfh->rss_context; | ^ ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5724:37: error: passing 'const struct ethtool_rxfh_param *' to parameter of type 'struct ethtool_rxfh_param *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5724 | if (!mvpp2_ethtool_rxfh_okay(port, rxfh)) | ^~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5700:36: note: passing argument to parameter 'rxfh' here 5700 | struct ethtool_rxfh_param *rxfh) | ^ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5744:37: error: passing 'const struct ethtool_rxfh_param *' to parameter of type 'struct ethtool_rxfh_param *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 5744 | if (!mvpp2_ethtool_rxfh_okay(port, rxfh)) | ^~~~ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5700:36: note: passing argument to parameter 'rxfh' here 5700 | struct ethtool_rxfh_param *rxfh) | ^ ../drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:5814:25: error: use of undeclared identifier 'mvpp2_delete_rxfh_context' 5814 | .delete_rxfh_context = mvpp2_delete_rxfh_context, | ^ 4 errors generated. make[8]: *** [../scripts/Makefile.build:244: drivers/net/ethernet/marvell/mvpp2/mvpp2_main.o] Error 1 make[8]: *** Waiting for unfinished jobs.... make[7]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/marvell/mvpp2] Error 2 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [../scripts/Makefile.build:485: drivers/net/ethernet/marvell] Error 2 make[6]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/myricom/myri10ge/myri10ge.c:43: In file included from ../include/linux/tcp.h:17: In file included from ../include/linux/skbuff.h:15: In file included from ../include/linux/time.h:60: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:67: In file included from ../arch/x86/include/asm/timex.h:5: In file included from ../arch/x86/include/asm/processor.h:19: In file included from ../arch/x86/include/asm/cpuid.h:62: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:12: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:374: ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 580 | __read_overflow2_field(q_size_field, size); | ^ ../include/linux/fortify-string.h:580:4: warning: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Wattribute-warning] 2 warnings generated. ../drivers/net/ethernet/natsemi/ns83820.c:1704:6: warning: variable 'loops' set but not used [-Wunused-but-set-variable] 1704 | int loops = 0; | ^ 1 warning generated. make[5]: *** [../scripts/Makefile.build:485: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:485: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/home/nipa/net-next/wt-1/Makefile:1925: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:224: __sub-make] Error 2 make: *** [Makefile:224: __sub-make] Error 2