tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpica-osl
head: 20957f62fa1421ff73e5f0e1167a9ea826c69d6b
commit: 20957f62fa1421ff73e5f0e1167a9ea826c69d6b [2/2] ACPI: OSL: Add support for deferred
unmapping of ACPI memory
config: x86_64-randconfig-r012-20200614 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
cb5072d1877b38c972f95092db2cedbcddb81da6)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 20957f62fa1421ff73e5f0e1167a9ea826c69d6b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
> drivers/acpi/osl.c:409:3: error: non-void function
'acpi_os_unref_iomem' should return a value [-Wreturn-type]
return;
^
1 error generated.
vim +/acpi_os_unref_iomem +409 drivers/acpi/osl.c
392
393 static bool __ref acpi_os_unref_iomem(void __iomem *virt, acpi_size size)
394 {
395 struct acpi_ioremap *map;
396 bool ret;
397
398 if (!acpi_permanent_mmap) {
399 __acpi_unmap_table(virt, size);
400 return false;
401 }
402
403 mutex_lock(&acpi_ioremap_lock);
404
405 map = acpi_map_lookup_virt(virt, size);
406 if (!map) {
407 mutex_unlock(&acpi_ioremap_lock);
408 WARN(true, PREFIX "%s: bad address %p\n", __func__, virt);
409 return;
410 }
411 ret = acpi_os_drop_map_ref(map);
412
413 mutex_unlock(&acpi_ioremap_lock);
414
415 return ret;
416 }
417
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org