[radeon-alex:amd-19.50 1962/2713] include/kcl/kcl_drm.h:191:9: error: too few arguments to function 'drm_encoder_init'

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

 



Hi Yifan,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-19.50
head:   f9a0b7ad3447d7766dda9923e63a5f4d0be7ce47
commit: 35781c0b8d19ed0d1bdb8cfa85780841ea7985ff [1962/2713] drm/amdkcl: Test whether drm_encoder_init() wants name
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout 35781c0b8d19ed0d1bdb8cfa85780841ea7985ff
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h:98:1: error: conflicting types for 'drm_fb_helper_remove_conflicting_framebuffers'
    drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_drm.h:7:0,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_fb_helper.h:589:1: note: previous definition of 'drm_fb_helper_remove_conflicting_framebuffers' was here
    drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/ttm/backport/backport.h:6:0,
                    from <command-line>:0:
   include/kcl/kcl_drm.h: In function 'kcl_drm_encoder_init':
>> include/kcl/kcl_drm.h:191:9: error: too few arguments to function 'drm_encoder_init'
     return drm_encoder_init(dev, encoder, funcs,
            ^~~~~~~~~~~~~~~~
   In file included from include/drm/drm_modeset_helper_vtables.h:33:0,
                    from include/drm/drm_atomic_helper.h:32,
                    from include/kcl/kcl_drm.h:10,
                    from drivers/gpu/drm/ttm/backport/backport.h:6,
                    from <command-line>:0:
   include/drm/drm_encoder.h:183:5: note: declared here
    int drm_encoder_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~

vim +/drm_encoder_init +191 include/kcl/kcl_drm.h

5027d12c82b867 changzhu     2019-04-03  181  
950c9c93299ece Junwei Zhang 2016-12-23  182  static inline int kcl_drm_encoder_init(struct drm_device *dev,
950c9c93299ece Junwei Zhang 2016-12-23  183  		      struct drm_encoder *encoder,
950c9c93299ece Junwei Zhang 2016-12-23  184  		      const struct drm_encoder_funcs *funcs,
950c9c93299ece Junwei Zhang 2016-12-23  185  		      int encoder_type, const char *name, ...)
950c9c93299ece Junwei Zhang 2016-12-23  186  {
35781c0b8d19ed Yifan Zhang  2019-07-15  187  #if defined(HAVE_DRM_ENCODER_INIT_VALID_WITH_NAME)
950c9c93299ece Junwei Zhang 2016-12-23  188  	return drm_encoder_init(dev, encoder, funcs,
950c9c93299ece Junwei Zhang 2016-12-23  189  			 encoder_type, name);
950c9c93299ece Junwei Zhang 2016-12-23  190  #else
950c9c93299ece Junwei Zhang 2016-12-23 @191  	return drm_encoder_init(dev, encoder, funcs,
950c9c93299ece Junwei Zhang 2016-12-23  192  			 encoder_type);
950c9c93299ece Junwei Zhang 2016-12-23  193  #endif
950c9c93299ece Junwei Zhang 2016-12-23  194  }
950c9c93299ece Junwei Zhang 2016-12-23  195  

:::::: The code at line 191 was first introduced by commit
:::::: 950c9c93299eceb8cca4b12eb09a04a48d383ec6 drm/amdkcl: [4.5] fix drm encoder and plane functions

:::::: TO: Junwei Zhang <Jerry.Zhang@xxxxxxx>
:::::: CC: Chengming Gui <Jack.Gui@xxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux