tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: a29fc03bd0ddaf7388cf31604ef5bd9807585109 commit: 83106717e2b7400d5e65a361975b20a706ceddd4 [3098/3098] iommu/ummu-core: add UMMU Token ID operation interfaces config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251104/202511040838.PRCEsIJz-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/20251104/202511040838.PRCEsIJz-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/202511040838.PRCEsIJz-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/iommu/hisilicon/ummu-core/core_tid.c:62:1: warning: no previous prototype for function 'default_manager_alloc' [-Wmissing-prototypes] 62 | default_manager_alloc(struct ummu_core_device *core_device, u32 max_tid, | ^ drivers/iommu/hisilicon/ummu-core/core_tid.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 61 | struct ummu_tid_manager * | ^ | static drivers/iommu/hisilicon/ummu-core/core_tid.c:75:6: warning: no previous prototype for function 'default_manager_free' [-Wmissing-prototypes] 75 | void default_manager_free(struct ummu_tid_manager *manager) | ^ drivers/iommu/hisilicon/ummu-core/core_tid.c:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 75 | void default_manager_free(struct ummu_tid_manager *manager) | ^ | static 2 warnings generated.
vim +/default_manager_alloc +62 drivers/iommu/hisilicon/ummu-core/core_tid.c 60 61 struct ummu_tid_manager *
62 default_manager_alloc(struct ummu_core_device *core_device, u32 max_tid, 63 u32 min_tid) 64 { 65 struct ummu_tid_manager *manager; 66 67 manager = kzalloc(sizeof(struct ummu_tid_manager), GFP_KERNEL); 68 if (!manager) 69 return NULL; 70 71 xa_init_flags(&manager->token_ids, XA_FLAGS_ALLOC); 72 return manager; 73 } 74 75 void default_manager_free(struct ummu_tid_manager *manager) 76 { 77 struct ummu_tid_data *data; 78 unsigned long index; 79 80 if (!manager) { 81 pr_err("invalid param.\n"); 82 return; 83 } 84 /* all tid have to be released by the user */ 85 if (WARN_ON(!xa_empty(&manager->token_ids))) { 86 pr_warn("tid resource was not released.\n"); 87 xa_for_each(&manager->token_ids, index, data) 88 manager->ops->free_tid(manager, index); 89 } 90 xa_destroy(&manager->token_ids); 91 kfree(manager); 92 } 93
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki