[omap:droid4-pending-mdm-v4.20 14/21] include/linux/serdev-gsm.h:194: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/tmlind/linux-omap.git droid4-pending-mdm-v4.20
head:   ab13333f2ab58d5710f1a05d82630440265b6129
commit: cd16272060d8100ef0388349cf88f42a1dc667fc [14/21] tty: n_gsm: Add support for serdev
config: i386-randconfig-x078-201850 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout cd16272060d8100ef0388349cf88f42a1dc667fc
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/tty/n_gsm.c:54:0:
   include/linux/serdev-gsm.h: In function 'gsm_serdev_unregister_dlci':
>> include/linux/serdev-gsm.h:194:9: warning: 'return' with a value, in function returning void
     return -ENODEV;
            ^
   include/linux/serdev-gsm.h:191:6: note: declared here
    void gsm_serdev_unregister_dlci(struct gsm_serdev *gsd,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/return +194 include/linux/serdev-gsm.h

   189	
   190	static inline
   191	void gsm_serdev_unregister_dlci(struct gsm_serdev *gsd,
   192					struct gsm_serdev_dlci *ops)
   193	{
 > 194		return -ENODEV;
   195	}
   196	

---
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 Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux