Hi Huang, kernel test robot noticed the following build warnings: [auto build test WARNING on v6.5-rc7] [also build test WARNING on linus/master] [cannot apply to joro-iommu/next next-20230823] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Huang-Jiaqing/iommu-vt-d-Introduce-a-rb_tree-for-looking-up-device/20230821-151945 base: v6.5-rc7 patch link: https://lore.kernel.org/r/20230821071659.123981-1-jiaqing.huang%40intel.com patch subject: [PATCH] iommu/vt-d: Introduce a rb_tree for looking up device config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230823/202308231801.6MtvqTmB-lkp@xxxxxxxxx/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce: (https://download.01.org/0day-ci/archive/20230823/202308231801.6MtvqTmB-lkp@xxxxxxxxx/reproduce) 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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202308231801.6MtvqTmB-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> drivers/iommu/intel/iommu.c:239:28: warning: no previous prototype for function 'device_rbtree_find' [-Wmissing-prototypes] struct device_domain_info *device_rbtree_find(struct intel_iommu *iommu, u8 bus, u8 devfn) ^ drivers/iommu/intel/iommu.c:239:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct device_domain_info *device_rbtree_find(struct intel_iommu *iommu, u8 bus, u8 devfn) ^ static 1 warning generated. vim +/device_rbtree_find +239 drivers/iommu/intel/iommu.c 237 238 > 239 struct device_domain_info *device_rbtree_find(struct intel_iommu *iommu, u8 bus, u8 devfn) 240 { 241 struct device_domain_info *data = NULL; 242 struct rb_node *node; 243 244 down_read(&iommu->iopf_device_sem); 245 246 node = iommu->iopf_device_rbtree.rb_node; 247 while (node) { 248 data = container_of(node, struct device_domain_info, node); 249 s16 result = RB_NODE_CMP(bus, devfn, data->bus, data->devfn); 250 251 if (result < 0) 252 node = node->rb_left; 253 else if (result > 0) 254 node = node->rb_right; 255 else 256 break; 257 } 258 up_read(&iommu->iopf_device_sem); 259 260 return node ? data : NULL; 261 } 262 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki