[driver-core:debugfs_cleanup 129/129] drivers/gpu//drm/sti/sti_compositor.c:55: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/driver-core.git debugfs_cleanup
head:   9831e93ace88fcb51c013ceca0b097133c8efb5f
commit: 9831e93ace88fcb51c013ceca0b097133c8efb5f [129/129] drm: huge cleanup...
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9831e93ace88fcb51c013ceca0b097133c8efb5f
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/gpu//drm/sti/sti_compositor.c: In function 'sti_compositor_debugfs_init':
>> drivers/gpu//drm/sti/sti_compositor.c:55:9: warning: 'return' with a value, in function returning void
     return 0;
            ^
   drivers/gpu//drm/sti/sti_compositor.c:42:6: note: declared here
    void sti_compositor_debugfs_init(struct sti_compositor *compo,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/return +55 drivers/gpu//drm/sti/sti_compositor.c

d219673d Benjamin Gaignard  2014-07-30  41  
9831e93a Greg Kroah-Hartman 2019-06-13  42  void sti_compositor_debugfs_init(struct sti_compositor *compo,
83af0a48 Benjamin Gaignard  2016-06-21  43  				 struct drm_minor *minor)
83af0a48 Benjamin Gaignard  2016-06-21  44  {
38fdb8d9 Vincent Abriou     2016-09-15  45  	unsigned int i;
83af0a48 Benjamin Gaignard  2016-06-21  46  
38fdb8d9 Vincent Abriou     2016-09-15  47  	for (i = 0; i < STI_MAX_VID; i++)
38fdb8d9 Vincent Abriou     2016-09-15  48  		if (compo->vid[i])
38fdb8d9 Vincent Abriou     2016-09-15  49  			vid_debugfs_init(compo->vid[i], minor);
83af0a48 Benjamin Gaignard  2016-06-21  50  
38fdb8d9 Vincent Abriou     2016-09-15  51  	for (i = 0; i < STI_MAX_MIXER; i++)
38fdb8d9 Vincent Abriou     2016-09-15  52  		if (compo->mixer[i])
38fdb8d9 Vincent Abriou     2016-09-15  53  			sti_mixer_debugfs_init(compo->mixer[i], minor);
83af0a48 Benjamin Gaignard  2016-06-21  54  
83af0a48 Benjamin Gaignard  2016-06-21 @55  	return 0;
83af0a48 Benjamin Gaignard  2016-06-21  56  }
83af0a48 Benjamin Gaignard  2016-06-21  57  

:::::: The code at line 55 was first introduced by commit
:::::: 83af0a483ac44594620ecae10a4d708b284972e1 drm: sti: use late_register and early_unregister callbacks

:::::: TO: Benjamin Gaignard <benjamin.gaignard@xxxxxxxxxx>
:::::: CC: Daniel Vetter <daniel.vetter@xxxxxxxx>

---
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