tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: b0092ae9263428dae1c544395395ea693608ace2 commit: 77313e84cc513055342c5e92ac8854e78bc15276 [1527/1527] virtcca feature : disable swiotlb for passthrough device config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20241126/202411262147.gY9YltBk-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/202411262147.gY9YltBk-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/202411262147.gY9YltBk-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/arm64/kernel/virtcca_cvm_guest.c:6: 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 + | ~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/virtcca_cvm_guest.c:139:6: warning: no previous prototype for function 'enable_swiotlb_for_cvm_dev' [-Wmissing-prototypes]
139 | void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable) | ^ arch/arm64/kernel/virtcca_cvm_guest.c:139:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 139 | void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable) | ^ | static 6 warnings generated.
vim +/enable_swiotlb_for_cvm_dev +139 arch/arm64/kernel/virtcca_cvm_guest.c
138
139 void enable_swiotlb_for_cvm_dev(struct device *dev, bool enable)
140 { 141 if (!is_virtcca_cvm_world()) 142 return; 143 144 if (enable) 145 swiotlb_dev_init(dev); 146 else 147 dev->dma_io_tlb_mem = &io_tlb_no_swiotlb_mem; 148 } 149 EXPORT_SYMBOL_GPL(enable_swiotlb_for_cvm_dev); 150