tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 37bf81d42b30a06140faa3c377e3f3c16f954e89 commit: 74e3846262704452212a3245dccb10c2cd185ac3 [1525/1525] net/hinic3: Support new TX feature config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20241126/202411260828.tqAJ61AV-lkp@i...) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241126/202411260828.tqAJ61AV-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/202411260828.tqAJ61AV-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/huawei/hinic3/hinic3_tx.c:6: In file included from include/net/xfrm.h:9: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/arm64/include/asm/cacheflush.h:11: In file included from include/linux/kgdb.h:19: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2247: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c:395:5: warning: no previous prototype for function 'hinic3_tx_offload' [-Wmissing-prototypes]
395 | u32 hinic3_tx_offload(struct sk_buff *skb, struct hinic3_offload_info *offload_info, | ^ drivers/net/ethernet/huawei/hinic3/hinic3_tx.c:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 395 | u32 hinic3_tx_offload(struct sk_buff *skb, struct hinic3_offload_info *offload_info, | ^ | static 6 warnings generated.
vim +/hinic3_tx_offload +395 drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
394
395 u32 hinic3_tx_offload(struct sk_buff *skb, struct hinic3_offload_info *offload_info,
396 struct hinic3_queue_info *queue_info, struct hinic3_txq *txq) 397 { 398 u32 offload = 0; 399 int tso_cs_en; 400 401 tso_cs_en = hinic3_tso(offload_info, queue_info, skb); 402 if (tso_cs_en < 0) { 403 offload = TX_OFFLOAD_INVALID; 404 return offload; 405 } else if (tso_cs_en) { 406 offload |= TX_OFFLOAD_TSO; 407 } else { 408 tso_cs_en = hinic3_tx_csum(txq, skb, offload_info, queue_info); 409 if (tso_cs_en) 410 offload |= TX_OFFLOAD_CSUM; 411 } 412