========== build_clang - FAILED ../scripts/Makefile.build:194: ../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/mellanox/mlx5/core/main.c:53: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/fs_core.h:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.h:8: ../drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5dr.h:163:5: error: use of undeclared identifier 'MLX5_STEERING_FORMAT_CONNECTX_8' 163 | MLX5_STEERING_FORMAT_CONNECTX_8))); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/main.c:249:46: warning: shift count >= width of type [-Wshift-count-overflow] 249 | err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); | ^~~~~~~~~~~~~~~~ ../include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK' 73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ ~~~ 1 warning and 1 error generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/mellanox/mlx5/core/main.o] Error 1 make[8]: *** Waiting for unfinished jobs.... 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:389: ../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:440: drivers/net/ethernet/mellanox/mlx5/core] Error 2 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/mellanox] Error 2 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 ../scripts/Makefile.build:194: ../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/mellanox/mlx5/core/main.c:53: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/fs_core.h:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/steering/sws/fs_dr.h:8: ../drivers/net/ethernet/mellanox/mlx5/core/steering/sws/mlx5dr.h:163:5: error: use of undeclared identifier 'MLX5_STEERING_FORMAT_CONNECTX_8' 163 | MLX5_STEERING_FORMAT_CONNECTX_8))); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/main.c:249:46: warning: shift count >= width of type [-Wshift-count-overflow] 249 | err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); | ^~~~~~~~~~~~~~~~ ../include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK' 73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ ~~~ 1 warning and 1 error generated. make[8]: *** [../scripts/Makefile.build:194: drivers/net/ethernet/mellanox/mlx5/core/main.o] Error 1 make[8]: *** Waiting for unfinished jobs.... 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:389: ../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:440: drivers/net/ethernet/mellanox/mlx5/core] Error 2 make[7]: *** Waiting for unfinished jobs.... make[6]: *** [../scripts/Makefile.build:440: drivers/net/ethernet/mellanox] Error 2 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:440: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:440: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:440: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2