[sailus-media:master 2203/2211] include/media/media-device.h:610:9: note: in expansion of macro 'NULL'

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

 



tree:   git://linuxtv.org/media_tree.git master
head:   3915d367932609f9c0bdc79c525b5dd5a806ab18
commit: 6cf5dad17e913fce1ccb0c38e199eff15b0f03cc [2203/2211] [media] media_device: move allocation out of media_device_*_init
config: i386-randconfig-x007-201608 (attached as .config)
reproduce:
        git checkout 6cf5dad17e913fce1ccb0c38e199eff15b0f03cc
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:4:0,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from Documentation/video4linux/v4l2-pci-skeleton.c:24:
   include/media/media-device.h: In function 'media_device_pci_init':
   include/linux/stddef.h:7:14: warning: 'return' with a value, in function returning void
    #define NULL ((void *)0)
                 ^
>> include/media/media-device.h:610:9: note: in expansion of macro 'NULL'
     return NULL;
            ^
   include/media/media-device.h: In function '__media_device_usb_init':
   include/linux/stddef.h:7:14: warning: 'return' with a value, in function returning void
    #define NULL ((void *)0)
                 ^
   include/media/media-device.h:618:9: note: in expansion of macro 'NULL'
     return NULL;
            ^

vim +/NULL +610 include/media/media-device.h

e576d60b Shuah Khan            2015-06-05  594  static inline void media_device_unregister_entity(struct media_entity *entity)
e576d60b Shuah Khan            2015-06-05  595  {
e576d60b Shuah Khan            2015-06-05  596  }
e576d60b Shuah Khan            2015-06-05  597  static inline struct media_device *media_device_get_devres(struct device *dev)
e576d60b Shuah Khan            2015-06-05  598  {
e576d60b Shuah Khan            2015-06-05  599  	return NULL;
e576d60b Shuah Khan            2015-06-05  600  }
e576d60b Shuah Khan            2015-06-05  601  static inline struct media_device *media_device_find_devres(struct device *dev)
e576d60b Shuah Khan            2015-06-05  602  {
e576d60b Shuah Khan            2015-06-05  603  	return NULL;
e576d60b Shuah Khan            2015-06-05  604  }
41b44e35 Mauro Carvalho Chehab 2016-02-22  605  
6cf5dad1 Mauro Carvalho Chehab 2016-02-22  606  static inline void media_device_pci_init(struct media_device *mdev,
6cf5dad1 Mauro Carvalho Chehab 2016-02-22  607  					 struct pci_dev *pci_dev,
41b44e35 Mauro Carvalho Chehab 2016-02-22  608  					 char *name)
41b44e35 Mauro Carvalho Chehab 2016-02-22  609  {
41b44e35 Mauro Carvalho Chehab 2016-02-22 @610  	return NULL;
41b44e35 Mauro Carvalho Chehab 2016-02-22  611  }
41b44e35 Mauro Carvalho Chehab 2016-02-22  612  
6cf5dad1 Mauro Carvalho Chehab 2016-02-22  613  static inline void __media_device_usb_init(struct media_device *mdev,
6cf5dad1 Mauro Carvalho Chehab 2016-02-22  614  					   struct usb_device *udev,
41b44e35 Mauro Carvalho Chehab 2016-02-22  615  					   char *board_name,
41b44e35 Mauro Carvalho Chehab 2016-02-22  616  					   char *driver_name)
41b44e35 Mauro Carvalho Chehab 2016-02-22  617  {
41b44e35 Mauro Carvalho Chehab 2016-02-22  618  	return NULL;

:::::: The code at line 610 was first introduced by commit
:::::: 41b44e35ba9b34e50a65c05ecf7642c07bd3e8aa [media] media-device: move PCI/USB helper functions from v4l2-mc

:::::: TO: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[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