========== build_clang - FAILED Documentation/.renames.txt: warning: ignored by one of the .gitignore files clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:631:6: warning: variable 'node_num' set but not used [-Wunused-but-set-variable] 631 | int node_num = 0; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:755:6: warning: variable 'node_size' set but not used [-Wunused-but-set-variable] 755 | u32 node_size; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:7: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 7 | #ifndef _NBL_HW_LEONIS_H_ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? 8 | #define _NBL_HW_EONIS_H_ | ^~~~~~~~~~~~~~~~ | _NBL_HW_LEONIS_H_ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:700:18: warning: variable 'pdev' set but not used [-Wunused-but-set-variable] 700 | struct pci_dev *pdev; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:724:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] 724 | struct nbl_hw_ops *hw_ops; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:812:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] 812 | struct nbl_hw_ops *hw_ops; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_queue_leonis.c:1007:25: warning: variable 'queue_info' set but not used [-Wunused-but-set-variable] 1007 | struct nbl_queue_info *queue_info = NULL; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.c:388:6: warning: variable 'vsi_id' set but not used [-Wunused-but-set-variable] 388 | u16 vsi_id; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis_regs.c:8: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 7 | #ifndef _NBL_HW_LEONIS_H_ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? 8 | #define _NBL_HW_EONIS_H_ | ^~~~~~~~~~~~~~~~ | _NBL_HW_LEONIS_H_ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.c:12:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 12 | struct device *dev, *dma_dev; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.c:66:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 66 | struct device *dev, *dma_dev; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_txrx.c:1877:25: warning: variable 'vector' set but not used [-Wunused-but-set-variable] 1877 | struct nbl_res_vector *vector = NULL; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_vsi.c:94:24: warning: variable 'queue_mgt' set but not used [-Wunused-but-set-variable] 94 | struct nbl_queue_mgt *queue_mgt; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:125:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] 125 | default: | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:125:2: note: insert 'break;' to avoid fall-through 125 | default: | ^ | break; ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:883:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 883 | int ret = 0; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:1105:41: warning: variable '_eth_statistics' is not needed and will not be emitted [-Wunneeded-internal-declaration] 1105 | static struct nbl_leonis_eth_stats_info _eth_statistics[] = { | ^~~~~~~~~~~~~~~ 3 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.c:2127:38: warning: variable 'param' set but not used [-Wunused-but-set-variable] 2127 | struct nbl_chan_param_cfg_msix_map *param; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:132 function parameter 'key' not described in 'nbl_common_init_index_table' Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:132 expecting prototype for 1024(). Prototype was for nbl_common_init_index_table() instead Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:293 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc available index Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:358 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * if the key has alloced available index, return the base index; Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:389 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * if the key has alloced available index, return the base index; Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:443 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash table Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:479 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash node, and add to hlist_head Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:531 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * get a hash node, return the data if node exist Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:572 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * free a hash node Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:689 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash x and y axis table Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:744 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash x and y node, and add to hlist_head Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:827 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * get a hash node, return the data if node exist Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:885 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * free a hash node WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/ethernet/nebula-matrix/nbl/nbl_core.o Documentation/.renames.txt: warning: ignored by one of the .gitignore files clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_vsi.c:94:24: warning: variable 'queue_mgt' set but not used [-Wunused-but-set-variable] 94 | struct nbl_queue_mgt *queue_mgt; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.c:12:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 12 | struct device *dev, *dma_dev; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_interrupt.c:66:17: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 66 | struct device *dev, *dma_dev; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis_regs.c:8: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 7 | #ifndef _NBL_HW_LEONIS_H_ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? 8 | #define _NBL_HW_EONIS_H_ | ^~~~~~~~~~~~~~~~ | _NBL_HW_LEONIS_H_ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.c:389:6: warning: variable 'vsi_id' set but not used [-Wunused-but-set-variable] 389 | u16 vsi_id; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:125:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] 125 | default: | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:125:2: note: insert 'break;' to avoid fall-through 125 | default: | ^ | break; ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:883:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 883 | int ret = 0; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:1105:41: warning: variable '_eth_statistics' is not needed and will not be emitted [-Wunneeded-internal-declaration] 1105 | static struct nbl_leonis_eth_stats_info _eth_statistics[] = { | ^~~~~~~~~~~~~~~ 3 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:187:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 187 | int ret; | ^ In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:7: 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/api.h:57: In file included from ../arch/x86/include/asm/paravirt.h:21: In file included from ../include/linux/cpumask.h:11: In file included from ../include/linux/bitmap.h:13: In file included from ../include/linux/string.h:386: ../include/linux/fortify-string.h:480:4: warning: call to '__write_overflow_field' declared with 'warning' attribute: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 480 | __write_overflow_field(p_size_field, size); | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_queue_leonis.c:1007:25: warning: variable 'queue_info' set but not used [-Wunused-but-set-variable] 1007 | struct nbl_queue_info *queue_info = NULL; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:584:7: warning: variable 'netdev_open' set but not used [-Wunused-but-set-variable] 584 | bool netdev_open = true; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:631:6: warning: variable 'node_num' set but not used [-Wunused-but-set-variable] 631 | int node_num = 0; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:755:6: warning: variable 'node_size' set but not used [-Wunused-but-set-variable] 755 | u32 node_size; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:28 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * In virtio mode, the emulator triggers the configuration of Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:132 function parameter 'key' not described in 'nbl_common_init_index_table' Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:132 expecting prototype for 1024(). Prototype was for nbl_common_init_index_table() instead Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:293 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc available index Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:358 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * if the key has alloced available index, return the base index; Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:389 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * if the key has alloced available index, return the base index; Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:443 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash table Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:479 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash node, and add to hlist_head Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:531 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * get a hash node, return the data if node exist Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:572 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * free a hash node Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:689 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash x and y axis table Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:744 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * alloc a hash x and y node, and add to hlist_head Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:827 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * get a hash node, return the data if node exist Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:885 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst * free a hash node clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:724:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] 724 | struct nbl_hw_ops *hw_ops; | ^ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:812:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] 812 | struct nbl_hw_ops *hw_ops; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_txrx.c:1877:25: warning: variable 'vector' set but not used [-Wunused-but-set-variable] 1877 | struct nbl_res_vector *vector = NULL; | ^ 1 warning generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:7: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] 7 | #ifndef _NBL_HW_LEONIS_H_ | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? 8 | #define _NBL_HW_EONIS_H_ | ^~~~~~~~~~~~~~~~ | _NBL_HW_LEONIS_H_ ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:700:18: warning: variable 'pdev' set but not used [-Wunused-but-set-variable] 700 | struct pci_dev *pdev; | ^ 2 warnings generated. clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.c:2127:38: warning: variable 'param' set but not used [-Wunused-but-set-variable] 2127 | struct nbl_chan_param_cfg_msix_map *param; | ^ 1 warning generated. WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/net/ethernet/nebula-matrix/nbl/nbl_core.o New errors added --- /tmp/tmp.lWnXRTmiAE 2025-12-23 01:17:44.095597722 -0500 +++ /tmp/tmp.PZ9WC9W3uR 2025-12-23 01:19:09.948994238 -0500 @@ -4,28 +3,0 @@ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:631:6: warning: variable 'node_num' set but not used [-Wunused-but-set-variable] - 631 | int node_num = 0; - | ^ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:755:6: warning: variable 'node_size' set but not used [-Wunused-but-set-variable] - 755 | u32 node_size; - | ^ -2 warnings generated. -clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] -In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:7: -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] - 7 | #ifndef _NBL_HW_LEONIS_H_ - | ^~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? - 8 | #define _NBL_HW_EONIS_H_ - | ^~~~~~~~~~~~~~~~ - | _NBL_HW_LEONIS_H_ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:700:18: warning: variable 'pdev' set but not used [-Wunused-but-set-variable] - 700 | struct pci_dev *pdev; - | ^ -2 warnings generated. -clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:724:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] - 724 | struct nbl_hw_ops *hw_ops; - | ^ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:812:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] - 812 | struct nbl_hw_ops *hw_ops; - | ^ -2 warnings generated. @@ -33,9 +4,0 @@ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_queue_leonis.c:1007:25: warning: variable 'queue_info' set but not used [-Wunused-but-set-variable] - 1007 | struct nbl_queue_info *queue_info = NULL; - | ^ -1 warning generated. -clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.c:388:6: warning: variable 'vsi_id' set but not used [-Wunused-but-set-variable] - 388 | u16 vsi_id; - | ^ -1 warning generated. @@ -43,8 +6,3 @@ -In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis_regs.c:8: -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] - 7 | #ifndef _NBL_HW_LEONIS_H_ - | ^~~~~~~~~~~~~~~~~ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? - 8 | #define _NBL_HW_EONIS_H_ - | ^~~~~~~~~~~~~~~~ - | _NBL_HW_LEONIS_H_ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_vsi.c:94:24: warning: variable 'queue_mgt' set but not used [-Wunused-but-set-variable] + 94 | struct nbl_queue_mgt *queue_mgt; + | ^ @@ -62,3 +20,8 @@ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_txrx.c:1877:25: warning: variable 'vector' set but not used [-Wunused-but-set-variable] - 1877 | struct nbl_res_vector *vector = NULL; - | ^ +In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis_regs.c:8: +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] + 7 | #ifndef _NBL_HW_LEONIS_H_ + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? + 8 | #define _NBL_HW_EONIS_H_ + | ^~~~~~~~~~~~~~~~ + | _NBL_HW_LEONIS_H_ @@ -67,4 +30,3 @@ -clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] -../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_vsi.c:94:24: warning: variable 'queue_mgt' set but not used [-Wunused-but-set-variable] - 94 | struct nbl_queue_mgt *queue_mgt; - | ^ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_resource_leonis.c:389:6: warning: variable 'vsi_id' set but not used [-Wunused-but-set-variable] + 389 | u16 vsi_id; + | ^ @@ -88,3 +50,27 @@ -../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.c:2127:38: warning: variable 'param' set but not used [-Wunused-but-set-variable] - 2127 | struct nbl_chan_param_cfg_msix_map *param; - | ^ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:187:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] + 187 | int ret; + | ^ +In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:7: +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/api.h:57: +In file included from ../arch/x86/include/asm/paravirt.h:21: +In file included from ../include/linux/cpumask.h:11: +In file included from ../include/linux/bitmap.h:13: +In file included from ../include/linux/string.h:386: +../include/linux/fortify-string.h:480:4: warning: call to '__write_overflow_field' declared with 'warning' attribute: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] + 480 | __write_overflow_field(p_size_field, size); + | ^ +2 warnings generated. +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_queue_leonis.c:1007:25: warning: variable 'queue_info' set but not used [-Wunused-but-set-variable] + 1007 | struct nbl_queue_info *queue_info = NULL; + | ^ +1 warning generated. +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:584:7: warning: variable 'netdev_open' set but not used [-Wunused-but-set-variable] + 584 | bool netdev_open = true; + | ^ @@ -92,0 +79,7 @@ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:631:6: warning: variable 'node_num' set but not used [-Wunused-but-set-variable] + 631 | int node_num = 0; + | ^ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_common/nbl_common.c:755:6: warning: variable 'node_size' set but not used [-Wunused-but-set-variable] + 755 | u32 node_size; + | ^ +2 warnings generated. @@ -93,0 +87,2 @@ +Warning: ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:28 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst + * In virtio mode, the emulator triggers the configuration of @@ -117,0 +113,31 @@ +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:724:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] + 724 | struct nbl_hw_ops *hw_ops; + | ^ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_flow_leonis.c:812:21: warning: variable 'hw_ops' set but not used [-Wunused-but-set-variable] + 812 | struct nbl_hw_ops *hw_ops; + | ^ +2 warnings generated. +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_txrx.c:1877:25: warning: variable 'vector' set but not used [-Wunused-but-set-variable] + 1877 | struct nbl_res_vector *vector = NULL; + | ^ +1 warning generated. +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +In file included from ../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:7: +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:7:9: warning: '_NBL_HW_LEONIS_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] + 7 | #ifndef _NBL_HW_LEONIS_H_ + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.h:8:9: note: '_NBL_HW_EONIS_H_' is defined here; did you mean '_NBL_HW_LEONIS_H_'? + 8 | #define _NBL_HW_EONIS_H_ + | ^~~~~~~~~~~~~~~~ + | _NBL_HW_LEONIS_H_ +../drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_hw_leonis.c:700:18: warning: variable 'pdev' set but not used [-Wunused-but-set-variable] + 700 | struct pci_dev *pdev; + | ^ +2 warnings generated. +clang: warning: no such include directory: '../../drivers/net/ethernet/nebula-matrix/nbl' [-Wmissing-include-dirs] +../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dispatch.c:2127:38: warning: variable 'param' set but not used [-Wunused-but-set-variable] + 2127 | struct nbl_chan_param_cfg_msix_map *param; + | ^ +1 warning generated. Per-file breakdown --- /tmp/tmp.2dLG4eONqP 2025-12-23 01:20:01.612631083 -0500 +++ /tmp/tmp.niTkbIwp4I 2025-12-23 01:20:01.615181985 -0500 @@ -1,0 +2 @@ + 1 ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c @@ -2,0 +4 @@ + 1 ../drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c @@ -11,0 +14 @@ + 1 ../include/linux/fortify-string.h