[driver-core:debugfs_cleanup 24/55] drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:227:3: warning: 'return' with no value, in function returning non-void

kbuild test robot lkp at intel.com
Tue Jul 16 05:53:50 UTC 2019


tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   a0738df2bf14f1a7151465012ab48e55c317a4f6
commit: 2b24e4775e3c329bb9fdc4539a50178139d26e40 [24/55] drm: make .debugfs_init and drm_debugfs_create_files() return void
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 2b24e4775e3c329bb9fdc4539a50178139d26e40
        # 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 at intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c: In function 'dpu_kms_debugfs_init':
>> drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:227:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
      return;
      ^~~~~~
   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:220:12: note: declared here
    static int dpu_kms_debugfs_init(struct msm_kms *kms, struct drm_minor *minor)
               ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c: At top level:
   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:701:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init    = dpu_kms_debugfs_init,
                        ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c:701:21: note: (near initialization for 'kms_funcs.debugfs_init')
   cc1: some warnings being treated as errors

vim +/return +227 drivers/gpu//drm/msm/disp/dpu1/dpu_kms.c

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 71233 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190716/10254500/attachment-0001.bin>


More information about the devel mailing list