[linuxtv-media:master 2747/2770] drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of non-void function

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

 



tree:   git://linuxtv.org/media_tree.git master
head:   01153bf04db18d5fcd30df64ffe428db7ff7bada
commit: 6bbf7a855d200ddd83494a9ceb95f9465f953f59 [2747/2770] media: dvbdev: convert DVB device types into an enum
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 6bbf7a855d200ddd83494a9ceb95f9465f953f59
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/media/dvb-core/dvbdev.c: In function 'nums2minor':
>> drivers/media/dvb-core/dvbdev.c:86:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +86 drivers/media/dvb-core/dvbdev.c

    70	
    71	static int nums2minor(int num, enum dvb_device_type type, int id)
    72	{
    73		int n = (num << 6) | (id << 4);
    74	
    75		switch (type) {
    76		case DVB_DEVICE_VIDEO:		return n;
    77		case DVB_DEVICE_AUDIO:		return n | 1;
    78		case DVB_DEVICE_SEC:		return n | 2;
    79		case DVB_DEVICE_FRONTEND:	return n | 3;
    80		case DVB_DEVICE_DEMUX:		return n | 4;
    81		case DVB_DEVICE_DVR:		return n | 5;
    82		case DVB_DEVICE_CA:		return n | 6;
    83		case DVB_DEVICE_NET:		return n | 7;
    84		case DVB_DEVICE_OSD:		return n | 8;
    85		}
  > 86	}
    87	

---
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 Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux