linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [pm:acpica-osl 2/2] drivers/acpi/osl.c:409:3: error: non-void function 'acpi_os_unref_iomem' should return a value
@ 2020-06-15  1:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-15  1:36 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: kbuild-all, clang-built-linux, linux-acpi, devel, linux-pm

[-- Attachment #1: Type: text/plain, Size: 2060 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25061 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-15  1:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15  1:36 [pm:acpica-osl 2/2] drivers/acpi/osl.c:409:3: error: non-void function 'acpi_os_unref_iomem' should return a value kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).