[driver-core:debugfs_cleanup 124/124] drivers/platform/x86/acer-wmi.c:2172:1: warning: no return statement 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/gregkh/driver-core.git debugfs_cleanup
head:   3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67
commit: 3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67 [124/124] platform/x86: fix changelog
config: x86_64-rhel (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
reproduce:
        git checkout 3ec9bc11e2cea5023fd7bda21dd0c942f4a67b67
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/platform/x86/acer-wmi.c: In function 'create_debugfs':
>> drivers/platform/x86/acer-wmi.c:2172:1: warning: no return statement in function returning non-void [-Wreturn-type]
    }
    ^

vim +2172 drivers/platform/x86/acer-wmi.c

81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2165  
76d51dd9 drivers/platform/x86/acer-wmi.c Mathias Krause     2014-07-16  2166  static int __init create_debugfs(void)
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2167  {
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2168  	interface->debug.root = debugfs_create_dir("acer-wmi", NULL);
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2169  
3ec9bc11 drivers/platform/x86/acer-wmi.c Greg Kroah-Hartman 2019-02-07  2170  	debugfs_create_u32("devices", S_IRUGO, interface->debug.root,
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2171  			   &interface->debug.wmid_devices);
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21 @2172  }
81143522 drivers/misc/acer-wmi.c         Carlos Corbacho    2008-06-21  2173  

:::::: The code at line 2172 was first introduced by commit
:::::: 81143522aa823036c4aa35bdd3b2e41966cf6e15 acer-wmi: Add debugfs file for device detection

:::::: TO: Carlos Corbacho <carlos@xxxxxxxxxxxxxxxxxxx>
:::::: CC: Andi Kleen <andi@xxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux