tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpica-osl
head: 6790a0b9e44a1e8f43bef642f6adb7200ec29551
commit: 6790a0b9e44a1e8f43bef642f6adb7200ec29551 [2/2] ACPI: OSL: Add support for deferred
unmapping of ACPI memory
config: x86_64-allyesconfig (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 6790a0b9e44a1e8f43bef642f6adb7200ec29551
# 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:402:3: error: non-void function
'acpi_os_unref_iomem' should return a value [-Wreturn-type]
return;
^
drivers/acpi/osl.c:411:3: error: non-void function 'acpi_os_unref_iomem' should
return a value [-Wreturn-type]
return;
^
2 errors generated.
vim +/acpi_os_unref_iomem +402 drivers/acpi/osl.c
394
395 static unsigned long __ref acpi_os_unref_iomem(void __iomem *virt, acpi_size size)
396 {
397 struct acpi_ioremap *map;
398 unsigned long refcount;
399
400 if (!acpi_permanent_mmap) {
401 __acpi_unmap_table(virt, size);
402 return;
403 }
404
405 mutex_lock(&acpi_ioremap_lock);
406
407 map = acpi_map_lookup_virt(virt, size);
408 if (!map) {
409 mutex_unlock(&acpi_ioremap_lock);
410 WARN(true, PREFIX "%s: bad address %p\n", __func__, virt);
411 return;
412 }
413 refcount = acpi_os_drop_map_ref(map);
414
415 mutex_unlock(&acpi_ioremap_lock);
416
417 return refcount;
418 }
419
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org