[pm:acpica-osl 2/2] drivers/acpi/osl.c:402:3: warning: 'return' with no value, in function returning non-void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        git checkout 6790a0b9e44a1e8f43bef642f6adb7200ec29551
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/acpi/osl.c: In function 'acpi_os_vprintf':
drivers/acpi/osl.c:153:2: warning: function 'acpi_os_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
153 |  vsprintf(buffer, fmt, args);
|  ^~~~~~~~
drivers/acpi/osl.c: In function 'acpi_os_unref_iomem':
>> drivers/acpi/osl.c:402:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
402 |   return;
|   ^~~~~~
drivers/acpi/osl.c:395:28: note: declared here
395 | static unsigned long __ref acpi_os_unref_iomem(void __iomem *virt, acpi_size size)
|                            ^~~~~~~~~~~~~~~~~~~
drivers/acpi/osl.c:411:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
411 |   return;
|   ^~~~~~
drivers/acpi/osl.c:395:28: note: declared here
395 | static unsigned long __ref acpi_os_unref_iomem(void __iomem *virt, acpi_size size)
|                            ^~~~~~~~~~~~~~~~~~~

vim +/return +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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux