
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: e1106320058bf1d983657f80490249b4f919ebad commit: 0bf0c942a09ba92e1d22e6960464b628dd4408fa [2220/2220] net/hinic3: Synchronize new NIC features and bug fixes config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250512/202505122110.l7rKvRzx-lkp@i...) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250512/202505122110.l7rKvRzx-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202505122110.l7rKvRzx-lkp@intel.com/ All error/warnings (new ones prefixed by >>): drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:312: warning: Function parameter or member 'attr6' not described in 'set_hwif_attr' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'hwdev' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'cfg_reg_base' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'intr_reg_base' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'mgmt_regs_base' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'db_base_phy' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'db_base' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Function parameter or member 'db_dwqe_len' not described in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Excess function parameter 'hwif' description in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:774: warning: Excess function parameter 'pdev' description in 'hinic3_init_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:840: warning: Function parameter or member 'hwdev' not described in 'hinic3_free_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:840: warning: Excess function parameter 'hwif' description in 'hinic3_free_hwif' drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:840: warning: Excess function parameter 'pdev' description in 'hinic3_free_hwif'
drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:862: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * get function id from register,used by sriov hot migration process drivers/net/ethernet/huawei/hinic3/hw/hinic3_hwif.c:878: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * get function id, used by sriov hot migratition process. -- drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:415:3: error: a randomized struct can only be initialized with a designated initializer 415 | {check_use_vram, cqm_buf_vram_kalloc}, | ^ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:416:3: error: a randomized struct can only be initialized with a designated initializer 416 | {check_for_use_node_alloc, cqm_buf_use_node_alloc_page}, | ^ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:417:3: error: a randomized struct can only be initialized with a designated initializer 417 | {check_for_nouse_node_alloc, cqm_buf_unused_node_alloc_page} | ^ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:421:3: error: a randomized struct can only be initialized with a designated initializer 421 | {check_use_vram, cqm_buf_vram_free}, | ^ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:422:3: error: a randomized struct can only be initialized with a designated initializer 422 | {check_use_non_vram, cqm_buf_free_page_common} | ^ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:428:25: error: invalid application of 'sizeof' to an incomplete type 'const struct malloc_memory[]' 428 | u32 malloc_funcs_num = ARRAY_SIZE(g_malloc_funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:57:32: note: expanded from macro 'ARRAY_SIZE' 57 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~ drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c:445:23: error: invalid application of 'sizeof' to an incomplete type 'const struct free_memory[]' 445 | u32 free_funcs_num = ARRAY_SIZE(g_free_funcs); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:57:32: note: expanded from macro 'ARRAY_SIZE' 57 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~ 7 errors generated.
vim +445 drivers/net/ethernet/huawei/hinic3/cqm/cqm_bitmap_table.c 419 420 static const struct free_memory g_free_funcs[] = { 421 {check_use_vram, cqm_buf_vram_free},
422 {check_use_non_vram, cqm_buf_free_page_common} 423 }; 424 425 static s32 cqm_buf_alloc_page(struct tag_cqm_handle *cqm_handle, struct tag_cqm_buf *buf) 426 { 427 struct hinic3_hwdev *handle = cqm_handle->ex_handle; 428 u32 malloc_funcs_num = ARRAY_SIZE(g_malloc_funcs); 429 u32 i; 430 431 for (i = 0; i < malloc_funcs_num; i++) { 432 if (g_malloc_funcs[i].check_alloc_mode && 433 g_malloc_funcs[i].malloc_func && 434 g_malloc_funcs[i].check_alloc_mode(handle, buf)) 435 return g_malloc_funcs[i].malloc_func(handle, buf); 436 } 437 438 cqm_err(handle->dev_hdl, "Unknown alloc mode\n"); 439 440 return CQM_FAIL; 441 } 442 443 static void cqm_buf_free_page(struct tag_cqm_buf *buf) 444 { 445 u32 free_funcs_num = ARRAY_SIZE(g_free_funcs); 446 u32 i; 447 448 for (i = 0; i < free_funcs_num; i++) { 449 if (g_free_funcs[i].check_alloc_mode && 450 g_free_funcs[i].free_func && 451 g_free_funcs[i].check_alloc_mode(NULL, buf)) 452 return g_free_funcs[i].free_func(buf); 453 } 454 } 455
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki