> -----Original Message----- > From: kernel test robot [mailto:lkp@intel.com] > Sent: 29 July 2022 06:29 > To: Shameerali Kolothum Thodi > Cc: llvm@lists.linux.dev; kbuild-all@lists.01.org; Linux Memory Management > List ; Joerg Roedel ; Guohanjun > (Hanjun Guo) > Subject: [linux-next:master 6932/13542] drivers/acpi/arm64/iort.c:1406:2: > error: call to undeclared function 'iort_iommu_rmr_get_resv_regions'; ISO > C99 and later do not support implicit function declarations > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > master > head: 7c5e07b73ff3011c9b82d4a3286a3362b951ad2b > commit: e302eea8f49717253ac64fd45b7cc719e87fa010 [6932/13542] > ACPI/IORT: Add a helper to retrieve RMR info directly > config: arm64-buildonly-randconfig-r005-20220728 > (https://download.01.org/0day-ci/archive/20220729/202207291335.1sImjc > bY-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project > 8dfaecc4c24494337933aff9d9166486ca0949f1) > reproduce (this is a W=1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/ > ?id=e302eea8f49717253ac64fd45b7cc719e87fa010 > git remote add linux-next > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout e302eea8f49717253ac64fd45b7cc719e87fa010 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang > make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/acpi/ > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> drivers/acpi/arm64/iort.c:1406:2: error: call to undeclared function > 'iort_iommu_rmr_get_resv_regions'; ISO C99 and later do not support > implicit function declarations [-Wimplicit-function-declaration] > iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL, > head); > ^ > drivers/acpi/arm64/iort.c:1406:2: note: did you mean > 'iort_iommu_get_resv_regions'? > drivers/acpi/arm64/iort.c:1329:6: note: 'iort_iommu_get_resv_regions' > declared here > void iort_iommu_get_resv_regions(struct device *dev, struct list_head > *head) > ^ > 1 error generated. Right. This is already reported and a fix is provided by Zhijie here, https://lore.kernel.org/linux-arm-kernel/20220726033520.47865-1-renzhijie2@huawei.com/ Thanks, Shameer > > vim +/iort_iommu_rmr_get_resv_regions +1406 drivers/acpi/arm64/iort.c > > 1396 > 1397 /** > 1398 * iort_get_rmr_sids - Retrieve IORT RMR node reserved regions > with > 1399 * associated StreamIDs information. > 1400 * @iommu_fwnode: fwnode associated with IOMMU > 1401 * @head: Resereved region list > 1402 */ > 1403 void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode, > 1404 struct list_head *head) > 1405 { > > 1406 iort_iommu_rmr_get_resv_regions(iommu_fwnode, NULL, > head); > 1407 } > 1408 EXPORT_SYMBOL_GPL(iort_get_rmr_sids); > 1409 > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp