[usb:debugfs_cleanup 109/109] drivers/usb/typec/tcpm.c:580:9: warning: 'return' with a value, in function returning void

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git debugfs_cleanup
head:   7b3bcbfe0aeedeec64c83cf9655273e8f42f1c54
commit: 7b3bcbfe0aeedeec64c83cf9655273e8f42f1c54 [109/109] usb: debugfs cleanup
config: i386-randconfig-s1-201821 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 7b3bcbfe0aeedeec64c83cf9655273e8f42f1c54
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/usb/typec/tcpm.c: In function 'tcpm_debugfs_init':
>> drivers/usb/typec/tcpm.c:580:9: warning: 'return' with a value, in function returning void
     return 0;
            ^
   drivers/usb/typec/tcpm.c:569:13: note: declared here
    static void tcpm_debugfs_init(struct tcpm_port *port)
                ^~~~~~~~~~~~~~~~~

vim +/return +580 drivers/usb/typec/tcpm.c

f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  568  
7b3bcbfe drivers/usb/typec/tcpm.c     Greg Kroah-Hartman 2018-05-29  569  static void tcpm_debugfs_init(struct tcpm_port *port)
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  570  {
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  571  	mutex_init(&port->logbuffer_lock);
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  572  	/* /sys/kernel/debug/tcpm/usbcX */
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  573  	if (!rootdir)
7b3bcbfe drivers/usb/typec/tcpm.c     Greg Kroah-Hartman 2018-05-29  574  		rootdir = debugfs_create_dir("tcpm", NULL);
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  575  
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  576  	port->dentry = debugfs_create_file(dev_name(port->dev),
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  577  					   S_IFREG | 0444, rootdir,
9e902c59 drivers/usb/typec/tcpm.c     Andy Shevchenko    2018-02-14  578  					   port, &tcpm_debug_fops);
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  579  
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27 @580  	return 0;
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  581  }
f0690a25 drivers/staging/typec/tcpm.c Guenter Roeck      2017-04-27  582  

:::::: The code at line 580 was first introduced by commit
:::::: f0690a25a140b853b1842fa80faf828601bb47e8 staging: typec: USB Type-C Port Manager (tcpm)

:::::: TO: Guenter Roeck <groeck@xxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux